<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingSoft Demo</title> <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> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div> <script> ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; var myConfig = { "globals": { "font-family": "Open Sans" }, "type": "area", "title": { "text": "Sales Per Company ($B)" }, "tooltip": { "font-size": 11, "border-width": 0, "padding": "6 10", "background-color": "#444 #111", "fill-angle": 270, "color": "#fff", "border-radius": 6, "alpha": 0.85 }, "plotarea": { "margin-top": "100" }, "stacked": true, "scaleX": {}, "scaleY": {}, "legend": { "toggle-action": "remove", "margin": "50 auto auto auto", "layout": "float", "border-width": 0, "marker": { "type": "default", "width": 16, "height": 16, "border-width": 0, "border-radius": 2, "background-image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAItJREFUeNpi/P//PwM5gImBTEAXjSpAnArngfxIBBYE4vP/ISAOJEaMjQJAvAeIDYD4IxDfR7aRCYirgNgQi01noTa9B2JTmBxMQSFU8jUQ6xDShKxRCYivQhW9AmIPID6JSxOyRhAWB+Ir/1EBVk3oGmGarxLShE0jCEsA8RYgtsAXRYx0T6sAAQYA/tZI643AdiwAAAAASUVORK5CYII=", "background-position": "50% 50%", "background-repeat": false }, "marker-off": { "background-image": "none", "background-color": "#bbb" } }, "plot": {}, "series": [{ "values": [69, 68, 54, 48, 70, 74], "text": "Apple" }, { "values": [51, 53, 47, 60, 48, 52], "text": "Microsoft" }, { "values": [42, 43, 30, 40, 31, 48], "text": "Oracle" }, { "values": [25, 15, 26, 21, 24, 26], "text": "Dell" } ] }; zingchart.render({ id: 'myChart', data: myConfig, height: '500', width: '500' }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ZingSoft Demo</title> <script src="https://cdn.zingchart.com/zingchart.min.js"></script> </head> <body> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></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 myConfig = { "globals": { "font-family": "Open Sans" }, "type": "area", "title": { "text": "Sales Per Company ($B)" }, "tooltip": { "font-size": 11, "border-width": 0, "padding": "6 10", "background-color": "#444 #111", "fill-angle": 270, "color": "#fff", "border-radius": 6, "alpha": 0.85 }, "plotarea": { "margin-top": "100" }, "stacked": true, "scaleX": {}, "scaleY": {}, "legend": { "toggle-action": "remove", "margin": "50 auto auto auto", "layout": "float", "border-width": 0, "marker": { "type": "default", "width": 16, "height": 16, "border-width": 0, "border-radius": 2, "background-image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAItJREFUeNpi/P//PwM5gImBTEAXjSpAnArngfxIBBYE4vP/ISAOJEaMjQJAvAeIDYD4IxDfR7aRCYirgNgQi01noTa9B2JTmBxMQSFU8jUQ6xDShKxRCYivQhW9AmIPID6JSxOyRhAWB+Ir/1EBVk3oGmGarxLShE0jCEsA8RYgtsAXRYx0T6sAAQYA/tZI643AdiwAAAAASUVORK5CYII=", "background-position": "50% 50%", "background-repeat": false }, "marker-off": { "background-image": "none", "background-color": "#bbb" } }, "plot": {}, "series": [{ "values": [69, 68, 54, 48, 70, 74], "text": "Apple" }, { "values": [51, 53, 47, 60, 48, 52], "text": "Microsoft" }, { "values": [42, 43, 30, 40, 31, 48], "text": "Oracle" }, { "values": [25, 15, 26, 21, 24, 26], "text": "Dell" } ] }; zingchart.render({ id: 'myChart', data: myConfig, height: '500', width: '500' });