<!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',
backgroundColor: '#2A2C3E',
title: {
text: 'Activity',
backgroundColor: '#FE9C8A',
fontColor: '#1A1B26',
fontSize: '16px',
height: '40px'
},
subtitle: {
backgroundColor: '#202235',
height: '35px',
y: '40px'
},
legend: {
backgroundColor: 'none',
borderWidth: '0px',
item: {
fontColor: 'white'
},
layout: 'h',
marker: {
type: 'circle',
borderColor: 'white'
},
shadow: false,
toggleAction: 'remove',
x: '32.5%',
y: '40px'
},
plot: {
valueBox: [{
text: '%t: %v',
fontSize: '16px',
placement: 'out'
},
{
text: '%npv%',
fontColor: '#1A1B26',
fontSize: '16px',
placement: 'in'
}
],
refAngle: 270
},
plotarea: {
margin: '90px 30px 25px 30px'
},
tooltip: {
borderColor: '#fff',
borderRadius: '3px',
borderWidth: '1px',
fontColor: '#1A1B26',
fontSize: '12px',
shadow: false
},
series: [{
values: [400],
backgroundColor: '#FB7373'
},
{
values: [350],
backgroundColor: '#FFA089'
},
{
values: [250],
backgroundColor: '#F2C994'
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});
</script>
</body>
</html>
let chartConfig = {
type: 'pie',
backgroundColor: '#2A2C3E',
title: {
text: 'Activity',
backgroundColor: '#FE9C8A',
fontColor: '#1A1B26',
fontSize: '16px',
height: '40px'
},
subtitle: {
backgroundColor: '#202235',
height: '35px',
y: '40px'
},
legend: {
backgroundColor: 'none',
borderWidth: '0px',
item: {
fontColor: 'white'
},
layout: 'h',
marker: {
type: 'circle',
borderColor: 'white'
},
shadow: false,
toggleAction: 'remove',
x: '32.5%',
y: '40px'
},
plot: {
valueBox: [
{
text: '%t: %v',
fontSize: '16px',
placement: 'out'
},
{
text: '%npv%',
fontColor: '#1A1B26',
fontSize: '16px',
placement: 'in'
}
],
refAngle: 270
},
plotarea: {
margin: '90px 30px 25px 30px'
},
tooltip: {
borderColor: '#fff',
borderRadius: '3px',
borderWidth: '1px',
fontColor: '#1A1B26',
fontSize: '12px',
shadow: false
},
series: [
{
values: [400],
backgroundColor: '#FB7373'
},
{
values: [350],
backgroundColor: '#FFA089'
},
{
values: [250],
backgroundColor: '#F2C994'
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});