<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingSoft Demo</title> <style> * { font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans'; font-size: 12px; } </style> <link href="https://fonts.googleapis.com/css?family=Exo+2" rel="stylesheet"> <script nonce="undefined" src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script> <script nonce="undefined"> window.ICONS24 = { 'ic00': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAa5JREFUeNrU1s8rg3EcwPFnmqmxRAkRp5lECTnJxcVNykUkJ3+Cgz9gIYflQMpBUkrKjwPJhVxcVtpNltomNIpkB5Y93t/1ffSYZ3u+mzn41Gu1Z3u+n+f57PP9PHPouq79ZZRofxyFJnBiBLsI4wLz8MrPXRhCnUaJqjCMMlEuBU74kdR/RggDWMJiuvy8+BDDjGKCCd0+XjCOHnFCtzyYwgqaba7+XCFBAnvoECe14tH0YRyzIjsqMxKIMr4qJLhFr1EiN/YtvvSBEyxgFC0ywY1CgkPjoowrE9miOU4Q5YsgKG/fLlaNBKJNK/CEtRxt6UATuuBWaOO4uZ/rsSUXKFZEzBvtGgeoLtLiKQS/3slaubChFyfC5k1rjIp3TGIaD7+8g3W8Wc0i8Rt45BwpNO6wmW3YRRGTNSw0Arj6dsRiHPThSPZ+PrEDT+Z62WZOKebyWPwUNVZrZR4ohxdTuFdcfDvb4oLYaJ0YSz8cNK0W7XLzqexWP5ZlF1oHWRrkMDuWA063mUnPCKBN5fnhMD30xUxqxCD64TPNnQRCOJMukVRpK8e//1fxKcAA7aHVBMYBzdMAAAAASUVORK5CYII=', 'ic01': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAihJREFUeNqsljssQ1E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AYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaRJREFUeNrs1U8oBFEcwPGdXW0bB0l78OeiXDhIkRsXFwcc/Ek5SUq5OHDT2qscHazDii1/SnKWUjZFouxNDuIm2nUgNpYd3+G39XbN7g47e/OrTzszO+/95r15vzearuuOYobTUeQoeoKSAtqu4AkhnCNpxwhK0S7HMYwjjAVUmrYwXrJFLTjCoZx7UI9l/TtO5TytnZWOqzCHZ+kolWALq2hEH5I4QLnVBG6M4EJPj1QCP2K4wzB65X9ftgSaDNvouBW7eNN/RiqBCzXYkOv9WEICTWYJZhDFS5aOMxMYD7CGWnk3EQzhUab0q191mY5lXQnmcYJZuLGIACpwhU47Cs2PKQziFh5J9oA6uyo5Ib8upXCNPnU7EkxLge3AizheZZpuzBIEZXhx5clyRRc2MYkJXCMq07NvVsnqMm3DXp5l6kQ11uX6AAJ4R7PVQhvFZZYEPlnW91JoPfkKLddWMS/1oSbYRggN6JYCC/9mq8hkVPexksAtm1tQEp/9dbNTlaFDjo1RxWUTNObea9ZGK+CbrH5wIvgwu0n7/+jni08BBgAhQkiY9snexwAAAABJRU5ErkJggg==' }; </script> <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } #myChart { height: 100%; width: 100%; min-height: 150px; } .zc-ref { display: none; } </style> </head> <body> <div style="padding:5px;"> <select id="n"> <option value="3">3</option> <option value="4" selected="selected">4</option> <option value="5">5</option> <option value="6">6</option> </select> elements, <select id="a"> <option value="180">180</option> <option value="270">270</option> <option value="360" selected="selected">360</option> </select> aperture, starting at <select id="ra"> <option value="0">0</option> <option value="45">45</option> <option value="90">90</option> <option value="135">135</option> <option value="180" selected="selected">180</option> <option value="225">225</option> <option value="270">270</option> <option value="315">315</option> </select> degrees, with <select id="an"> <option value="-1" selected="selected">no animation</option> <option value="0">effect 0</option> <option value="1">effect 1</option> <option value="2">effect 2</option> <option value="3">effect 3</option> <option value="4">effect 4</option> </select>, <select id="s"> <option value="0" selected="selected">non-sequenced</option> <option value="1">in sequence</option> </select> <button id="r">Render</button> </div> <div id="zc"></div> <script> ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; var aPalette = ['#F78022', '#00ADD5', '#606C7A', '#61BB49', '#A7CD3A', '#F15942']; var aIcons = ['ic00', 'ic01', 'ic07', 'ic03', 'ic04', 'ic02']; var aText = [ 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.' ]; var aTooltipText = ['Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum']; var render = function() { var cdata = { resources: [{ type: 'css', url: 'https://fonts.googleapis.com/css?family=Exo+2' }], type: 'pie', plotarea: { margin: 10 }, scaleR: { aperture: parseInt(a.value, 10), refAngle: parseInt(ra.value, 10) }, scale: { sizeFactor: 0.75 }, plot: { detach: false, borderWidth: 8, borderColor: '#FFF', slice: '0%', pieTransform: 'droplet', hoverState: { visible: false } }, series: [] }; if (an.value !== '-1') { cdata['plot'].animation = { speed: 200, method: 0, effect: parseInt(an.value, 10), sequence: parseInt(s.value, 10) }; } var items = parseInt(n.value, 10); for (var i = 0; i < items; i++) { var no = i + 1; cdata['series'].push({ values: [1], tooltipText: aTooltipText[i], dataNo: ((no <= 9) ? '0' + no : no), valueBox: [{ placement: 'fixed=25%;50%', fontSize: 6, shadow: false, color: '#FFF', decimals: 0, fontFamily: '"Exo 2"', text: '<span style="font-size:23px">%data-no</span>' }, { width: 24, height: 24, placement: 'fixed=95%;50%', backgroundColor: 'none', shadow: false, backgroundImage: ICONS24[aIcons[i]], backgroundRepeat: 'no-repeat', text: ' ' }, { align: 'left', placement: 'fixed=60%;50%', backgroundColor: 'none', shadow: false, fontSize: 10, text: aText[i] } ], backgroundColor: aPalette[i] }); } zingchart.render({ id: 'zc', width: 500, height: 500, output: 'svg', data: cdata, events: { animation_end: function(p) { if (an.value !== '-1') { addElements(p); } }, load: function(p) { if (an.value === '-1') { addElements(p); } } } }); } window.addEventListener('load', function() { WebFont.load({ google: { families: ['Exo 2'] }, active: function() { r.addEventListener('click', function() { render(); }); render(); window.addElements = function(p) { var iPlots = zingchart.exec(p.id, 'getplotlength'); var aObjects = [], oInfo; for (var i = 0; i < iPlots; i++) { oInfo = zingchart.exec(p.id, 'getobjectinfo', { object: 'node', plotindex: i, nodeindex: 0 }); } zingchart.exec(p.id, 'addobject', { type: 'label', data: aObjects }); }; } }); }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingSoft Demo</title> <style> * { font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans'; font-size: 12px; } </style> <link href="https://fonts.googleapis.com/css?family=Exo+2" rel="stylesheet"> <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script> <script> window.ICONS24 = { 'ic00': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAa5JREFUeNrU1s8rg3EcwPFnmqmxRAkRp5lECTnJxcVNykUkJ3+Cgz9gIYflQMpBUkrKjwPJhVxcVtpNltomNIpkB5Y93t/1ffSYZ3u+mzn41Gu1Z3u+n+f57PP9PHPouq79ZZRofxyFJnBiBLsI4wLz8MrPXRhCnUaJqjCMMlEuBU74kdR/RggDWMJiuvy8+BDDjGKCCd0+XjCOHnFCtzyYwgqaba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eyNLfReWIBoDn+t9yHP03a0P1jDkq6Xzni+pik8/JLnMKkcN6n5VJVPe16JR+jwUrENl3EFQ9qLKk55btooR4udpnF9OJcw683fGc7TykLnnwADABWSG+pH1Il8AAAAAElFTkSuQmCC', 'ic06': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAe9JREFUeNrU1s9rE0EUwPFsaJNogrQllaQqYooXoQbsrVhTD6VQ/wBPngTxpBcRG1AIivRo/wAvnuylUGgltBDPBgsiPeilJUVEo0KChESrWb8PX2QYk3QDm0MHPtDOzM6bH29247iuG+hnCQb6XPwKEMV9jP7XIlvkgyMo4xnCZptfAWTQXfdveY5Yq22ARcRwATmE8VsXF0ER9/DdWngaDzCGX7rVSW27qs9exzeJkkLO7VzWzBnhHPbcg8tLZCVyU46iywFewRJktSH9+5SHg0/ghMwoihndwx+oqTqaOptXOvvH1iwbRv+mUf8WZ+GYBxXCURVBHA9RwUXM64Ctsq3bO4gRfNX61xjvJYvO62zeG4P/1IBmmkpdESd7TVMHq9bWPGmTpjftwb0GWLAGl/09bvUZ1G2M9hrgMqrG4JIElzCHtLVFX7CCY50CmIcsM5rFjjX7LE7jE/JI6nPDKGmfAhJmAFlWRgcz03TfGnwDQ9j0kKZbmmGOXJ44pnFGL0iozaX5jLuooGrUhztcMnn1vEChdZP3u9zIBu7gjf5/DcsebvIHlGQFZaxjAinjZRfUwIvIGw/WcQMfMaV9pO+ksaKnuI2an6/rkp7Do358DyRR3uGW3eb49NGXrcnIoer34V9xDv2vij8CDAC3qzmYkAoiegAAAABJRU5ErkJggg==', 'ic07': 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAcpJREFUeNrElc9LAkEUx3crKpXwVEEHDTqI0EnoP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Atm1tQEp/9dbNTlaFDjo1RxWUTNObea9ZGK+CbrH5wIvgwu0n7/+jni08BBgAhQkiY9snexwAAAABJRU5ErkJggg==' }; </script> <script src="https://cdn.zingchart.com/zingchart.min.js"></script> </head> <body> <div style="padding:5px;"> <select id="n"> <option value="3">3</option> <option value="4" selected="selected">4</option> <option value="5">5</option> <option value="6">6</option> </select> elements, <select id="a"> <option value="180">180</option> <option value="270">270</option> <option value="360" selected="selected">360</option> </select> aperture, starting at <select id="ra"> <option value="0">0</option> <option value="45">45</option> <option value="90">90</option> <option value="135">135</option> <option value="180" selected="selected">180</option> <option value="225">225</option> <option value="270">270</option> <option value="315">315</option> </select> degrees, with <select id="an"> <option value="-1" selected="selected">no animation</option> <option value="0">effect 0</option> <option value="1">effect 1</option> <option value="2">effect 2</option> <option value="3">effect 3</option> <option value="4">effect 4</option> </select>, <select id="s"> <option value="0" selected="selected">non-sequenced</option> <option value="1">in sequence</option> </select> <button id="r">Render</button> </div> <div id="zc"></div> </body> </html>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; } #myChart { height: 100%; width: 100%; min-height: 150px; } .zc-ref { display: none; }
var aPalette = ['#F78022', '#00ADD5', '#606C7A', '#61BB49', '#A7CD3A', '#F15942']; var aIcons = ['ic00', 'ic01', 'ic07', 'ic03', 'ic04', 'ic02']; var aText = [ 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.', 'Lorem ipsum<br>dolor sit amet,<br>consectetur<br>adipiscing elit.' ]; var aTooltipText = ['Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum', 'Lorem ipsum']; var render = function() { var cdata = { resources: [{ type: 'css', url: 'https://fonts.googleapis.com/css?family=Exo+2' }], type: 'pie', plotarea: { margin: 10 }, scaleR: { aperture: parseInt(a.value, 10), refAngle: parseInt(ra.value, 10) }, scale: { sizeFactor: 0.75 }, plot: { detach: false, borderWidth: 8, borderColor: '#FFF', slice: '0%', pieTransform: 'droplet', hoverState: { visible: false } }, series: [] }; if (an.value !== '-1') { cdata['plot'].animation = { speed: 200, method: 0, effect: parseInt(an.value, 10), sequence: parseInt(s.value, 10) }; } var items = parseInt(n.value, 10); for (var i = 0; i < items; i++) { var no = i + 1; cdata['series'].push({ values: [1], tooltipText: aTooltipText[i], dataNo: ((no <= 9) ? '0' + no : no), valueBox: [{ placement: 'fixed=25%;50%', fontSize: 6, shadow: false, color: '#FFF', decimals: 0, fontFamily: '"Exo 2"', text: '<span style="font-size:23px">%data-no</span>' }, { width: 24, height: 24, placement: 'fixed=95%;50%', backgroundColor: 'none', shadow: false, backgroundImage: ICONS24[aIcons[i]], backgroundRepeat: 'no-repeat', text: ' ' }, { align: 'left', placement: 'fixed=60%;50%', backgroundColor: 'none', shadow: false, fontSize: 10, text: aText[i] } ], backgroundColor: aPalette[i] }); } zingchart.render({ id: 'zc', width: 500, height: 500, output: 'svg', data: cdata, events: { animation_end: function(p) { if (an.value !== '-1') { addElements(p); } }, load: function(p) { if (an.value === '-1') { addElements(p); } } } }); } window.addEventListener('load', function() { WebFont.load({ google: { families: ['Exo 2'] }, active: function() { r.addEventListener('click', function() { render(); }); render(); window.addElements = function(p) { var iPlots = zingchart.exec(p.id, 'getplotlength'); var aObjects = [], oInfo; for (var i = 0; i < iPlots; i++) { oInfo = zingchart.exec(p.id, 'getobjectinfo', { object: 'node', plotindex: i, nodeindex: 0 }); } zingchart.exec(p.id, 'addobject', { type: 'label', data: aObjects }); }; } }); });