<!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 {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.chart--container {
min-height: 150px;
width: 100%;
height: 100%;
}
.zc-ref {
display: none;
}
</style>
</head>
<body>
<!-- CHART CONTAINER -->
<div id="myChart" class="chart--container">
<a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
</div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
let myConfig = {
history: { // allows for navigation of drilldown charts
backgroundColor: '#ee5e64',
item: {
backgroundColor: '#e6f04b',
size: '10px',
},
itemOff: {
backgroundColor: '#333333'
},
},
graphset: [{
id: 'd1',
type: 'pie',
subtitle: {
text: 'Click a pie slice to drill down to the next level',
y: '2%'
},
plot: {
detach: false,
valueBox: {
text: '%t<br>%npv%' // see tokens for details on chart data populated text
}
},
series: [
/* The code for the charts associated to the url attribute are inlcuded at the bottom*/
{
values: [80],
url: '//cdn.zingchart.com/resources/history-series-1.txt',
target: 'graph=d1'
},
{
values: [65],
url: '//cdn.zingchart.com/resources/history-series-2.txt',
target: 'graph=d1'
},
{
values: [60],
url: '//cdn.zingchart.com/resources/history-series-3.txt',
target: 'graph=d1'
},
{
values: [50],
url: '//cdn.zingchart.com/resources/history-series-4.txt',
target: 'graph=d1'
},
{
values: [48],
url: '//cdn.zingchart.com/resources/history-series-5.txt',
target: 'graph=d1'
}
]
}]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: '100%',
width: '100%'
});
</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>
<!-- CHART CONTAINER -->
<div id="myChart" class="chart--container">
<a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a>
</div>
</body>
</html>
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
.chart--container {
min-height: 150px;
width: 100%;
height: 100%;
}
.zc-ref {
display: none;
}
let myConfig = {
history: { // allows for navigation of drilldown charts
backgroundColor: '#ee5e64',
item: {
backgroundColor: '#e6f04b',
size: '10px',
},
itemOff: {
backgroundColor: '#333333'
},
},
graphset: [{
id: 'd1',
type: 'pie',
subtitle: {
text: 'Click a pie slice to drill down to the next level',
y: '2%'
},
plot: {
detach: false,
valueBox: {
text: '%t<br>%npv%' // see tokens for details on chart data populated text
}
},
series: [
/* The code for the charts associated to the url attribute are inlcuded at the bottom*/
{
values: [80],
url: '//cdn.zingchart.com/resources/history-series-1.txt',
target: 'graph=d1'
},
{
values: [65],
url: '//cdn.zingchart.com/resources/history-series-2.txt',
target: 'graph=d1'
},
{
values: [60],
url: '//cdn.zingchart.com/resources/history-series-3.txt',
target: 'graph=d1'
},
{
values: [50],
url: '//cdn.zingchart.com/resources/history-series-4.txt',
target: 'graph=d1'
},
{
values: [48],
url: '//cdn.zingchart.com/resources/history-series-5.txt',
target: 'graph=d1'
}
]
}]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: '100%',
width: '100%'
});