<!doctype html>
<html class="zc-html">
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style>
.zc-body {
background: #fff;
}
.chart--container {
height: 100%;
width: 100%;
min-height: 600px;
}
.zc-ref {
display: none;
}
</style>
</head>
<body class="zc-body">
<div id="myChart" class="chart--container">
<a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a>
</div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
// full ZingChart schema can be found here:
// https://www.zingchart.com/docs/api/json-configuration/
let bluePalette = ['#afecfe', '#7ddefd', '#36b6f8', '#3290be', '#5ca5ca', '#a0bed6', '#98c1de', '#aedaf2'];
let chartData = [{
values: [12.5],
text: 'One'
},
{
values: [12.5],
text: 'Two'
},
{
values: [12.5],
text: 'Three'
},
{
values: [12.5],
text: 'Four'
},
{
values: [12.5],
text: 'Five'
},
{
values: [12.5],
text: 'Six'
},
{
values: [12.5],
text: 'Seven'
},
{
values: [12.5],
text: 'Eight'
}
];
let chartConfig = {
type: 'pie',
globals: {
fontFamily: 'sans-serif'
},
palette: bluePalette,
title: {
text: 'Advanced Pie Chart',
align: 'left',
color: '#5D7D9A',
fontSize: '30px',
padding: '30px 0 0 35px'
},
subtitle: {
text: '<br>Unleash the power of the ZingChart\'s<br>advanced pie chart options to create<br>animated and interactive pie charts<br>with wildly different styles!',
align: 'left',
color: '#5D7D9A',
fontSize: '16px',
fontWeight: 300,
padding: '35px 0 0 35px'
},
legend: {
align: 'left',
borderRadius: '5px',
layout: '2x4',
highlightPlot: true,
margin: '5px 20px 0 25px',
padding: '5px',
toggleAction: 'remove',
verticalAlign: 'middle',
header: {
text: 'Legend',
color: '#5D7D9A',
padding: '10px'
},
item: {
fontColor: '#373a3c',
fontSize: '12px'
}
},
plot: {
detach: false,
pieTransform: 'fold=20',
refAngle: 270,
slice: 0,
valueBox: {
fontColor: '#fff'
},
highlightState: {
borderColor: '#000',
borderWidth: '2px'
}
},
tooltip: {
borderRadius: '3px',
padding: '10px 15px'
},
series: chartData
};
// render chart
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%'
});
</script>
</body>
</html>
// full ZingChart schema can be found here:
// https://www.zingchart.com/docs/api/json-configuration/
let bluePalette = ['#afecfe', '#7ddefd', '#36b6f8', '#3290be', '#5ca5ca', '#a0bed6', '#98c1de', '#aedaf2'];
let chartData = [
{
values: [12.5],
text: 'One'
},
{
values: [12.5],
text: 'Two'
},
{
values: [12.5],
text: 'Three'
},
{
values: [12.5],
text: 'Four'
},
{
values: [12.5],
text: 'Five'
},
{
values: [12.5],
text: 'Six'
},
{
values: [12.5],
text: 'Seven'
},
{
values: [12.5],
text: 'Eight'
}
];
let chartConfig = {
type: 'pie',
globals: {
fontFamily: 'sans-serif'
},
palette: bluePalette,
title: {
text: 'Advanced Pie Chart',
align: 'left',
color: '#5D7D9A',
fontSize: '30px',
padding: '30px 0 0 35px'
},
subtitle: {
text: '<br>Unleash the power of the ZingChart\'s<br>advanced pie chart options to create<br>animated and interactive pie charts<br>with wildly different styles!',
align: 'left',
color: '#5D7D9A',
fontSize: '16px',
fontWeight: 300,
padding: '35px 0 0 35px'
},
legend: {
align: 'left',
borderRadius: '5px',
layout: '2x4',
highlightPlot: true,
margin: '5px 20px 0 25px',
padding: '5px',
toggleAction: 'remove',
verticalAlign: 'middle',
header: {
text: 'Legend',
color: '#5D7D9A',
padding: '10px'
},
item: {
fontColor: '#373a3c',
fontSize: '12px'
}
},
plot: {
detach: false,
pieTransform: 'fold=20',
refAngle: 270,
slice: 0,
valueBox: {
fontColor: '#fff'
},
highlightState: {
borderColor: '#000',
borderWidth: '2px'
}
},
tooltip: {
borderRadius: '3px',
padding: '10px 15px'
},
series: chartData
};
// render chart
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%'
});