<!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>
.chart--container {
height: 100%;
width: 100%;
min-height: 530px;
}
.zc-ref {
display: none;
}
</style>
</head>
<body>
<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 chartConfig = {
type: 'pie',
theme: 'classic',
backgroundColor: '#f1f1f1 #ffffff',
title: {
text: 'Deliveries by County',
backgroundColor: '#052C4E'
},
subtitle: {
text: 'Morning Shift'
},
legend: {
align: 'center',
header: {
text: 'County',
backgroundColor: '#052C4E'
},
layout: 'h',
shadow: false,
toggleAction: 'remove',
verticalAlign: 'bottom'
},
plot: {
valueBox: {
offsetR: '20px',
placement: 'in'
},
refAngle: 180,
size: '250px'
},
plotarea: {
y: '150px'
},
scaleR: {
aperture: 180
},
tooltip: {
text: '%t<br>Deliveries: %v<br>Percent of Shirt %npv%',
borderColor: '#fff',
borderRadius: '4px',
borderWidth: '2px',
shadow: false,
textAlign: 'left'
},
series: [{
text: 'Los Angeles',
values: [2645],
backgroundColor: '#2870B1'
},
{
text: 'Riverside',
values: [2568],
backgroundColor: '#BB1FA8'
},
{
text: 'San Diego',
values: [1831],
backgroundColor: '#7E971D'
},
{
text: 'Orange',
values: [1111],
backgroundColor: '#FFA72A'
},
{
text: 'Ventura',
values: [1026],
backgroundColor: '#54004A'
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});
</script>
</body>
</html>
let chartConfig = {
type: 'pie',
theme: 'classic',
backgroundColor: '#f1f1f1 #ffffff',
title: {
text: 'Deliveries by County',
backgroundColor: '#052C4E'
},
subtitle: {
text: 'Morning Shift'
},
legend: {
align: 'center',
header: {
text: 'County',
backgroundColor: '#052C4E'
},
layout: 'h',
shadow: false,
toggleAction: 'remove',
verticalAlign: 'bottom'
},
plot: {
valueBox: {
offsetR: '20px',
placement: 'in'
},
refAngle: 180,
size: '250px'
},
plotarea: {
y: '150px'
},
scaleR: {
aperture: 180
},
tooltip: {
text: '%t<br>Deliveries: %v<br>Percent of Shirt %npv%',
borderColor: '#fff',
borderRadius: '4px',
borderWidth: '2px',
shadow: false,
textAlign: 'left'
},
series: [
{
text: 'Los Angeles',
values: [2645],
backgroundColor: '#2870B1'
},
{
text: 'Riverside',
values: [2568],
backgroundColor: '#BB1FA8'
},
{
text: 'San Diego',
values: [1831],
backgroundColor: '#7E971D'
},
{
text: 'Orange',
values: [1111],
backgroundColor: '#FFA72A'
},
{
text: 'Ventura',
values: [1026],
backgroundColor: '#54004A'
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});