<!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 {
width: 100%;
height: 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: 'area',
backgroundColor: '#f5f8f4',
title: {
text: 'Customer Survey Response Quality',
backgroundColor: 'none',
fontColor: '#5b5b5b',
fontSize: '14px',
padding: '10px',
textAlign: 'center',
},
legend: {
layout: 'x2',
margin: '85% auto auto auto',
marker: {
type: 'match',
lineWidth: '4px',
shadow: false,
showLine: true,
},
shadow: false,
toggleAction: 'remove',
},
plot: {
tooltip: {
text: '%t Surveys: %v<br>Percent of Surveys for %k: %npv%',
borderRadius: '5px',
decimals: 0,
shadow: false,
},
activeArea: true,
stacked: true,
stackType: '100%',
},
plotarea: {
margin: '15% 8% 35% 10%',
},
scaleX: {
values: [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sept',
'Oct',
'Nov',
'Dec',
],
guide: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
item: {
fontAngle: -45,
},
itemsOverlap: true,
label: {
text: 'Surveys per Month',
fontColor: '#5b5b5b',
paddingTop: '20px',
},
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
maxItems: 9999,
tick: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
},
scaleY: {
format: '%v%',
guide: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
label: {
text: 'Surveys per Quality Guidelines',
fontColor: '#5b5b5b',
},
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
maxValue: 100,
minValue: 0,
step: 20,
tick: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
},
series: [{
text: 'Poor',
values: [116, 125, 109, 86, 76, 95, 85, 77, 101, 90, 87, 62],
backgroundColor: '#93c2b7',
lineColor: '#67b3b4',
marker: {
backgroundColor: '#93c2b7',
borderColor: '#67b3b4',
borderWidth: '2px',
shadow: false,
},
},
{
text: 'Moderate',
values: [195, 206, 215, 140, 185, 176, 184, 190, 110, 174, 155, 165],
backgroundColor: '#19a6b1',
lineColor: '#2a8ea6',
marker: {
backgroundColor: '#19a6b1',
borderColor: '#2a8ea6',
borderWidth: '2px',
shadow: false,
},
},
{
text: 'Good',
values: [223, 284, 268, 274, 230, 199, 185, 208, 248, 295, 210, 225],
backgroundColor: '#3e7ba8',
lineColor: '#416a9b',
marker: {
backgroundColor: '#3e7ba8',
borderColor: '#416a9b',
borderWidth: '2px',
shadow: false,
},
},
{
text: 'Excellent',
values: [185, 175, 168, 154, 198, 175, 124, 145, 168, 174, 154, 125],
backgroundColor: '#495a95',
lineColor: '#3e3970',
marker: {
backgroundColor: '#495a95',
borderColor: '#3e3970',
borderWidth: '2px',
shadow: false,
},
},
],
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});
</script>
</body>
</html>
let chartConfig = {
type: 'area',
backgroundColor: '#f5f8f4',
title: {
text: 'Customer Survey Response Quality',
backgroundColor: 'none',
fontColor: '#5b5b5b',
fontSize: '14px',
padding: '10px',
textAlign: 'center',
},
legend: {
layout: 'x2',
margin: '85% auto auto auto',
marker: {
type: 'match',
lineWidth: '4px',
shadow: false,
showLine: true,
},
shadow: false,
toggleAction: 'remove',
},
plot: {
tooltip: {
text: '%t Surveys: %v<br>Percent of Surveys for %k: %npv%',
borderRadius: '5px',
decimals: 0,
shadow: false,
},
activeArea: true,
stacked: true,
stackType: '100%',
},
plotarea: {
margin: '15% 8% 35% 10%',
},
scaleX: {
values: [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sept',
'Oct',
'Nov',
'Dec',
],
guide: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
item: {
fontAngle: -45,
},
itemsOverlap: true,
label: {
text: 'Surveys per Month',
fontColor: '#5b5b5b',
paddingTop: '20px',
},
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
maxItems: 9999,
tick: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
},
scaleY: {
format: '%v%',
guide: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
label: {
text: 'Surveys per Quality Guidelines',
fontColor: '#5b5b5b',
},
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
maxValue: 100,
minValue: 0,
step: 20,
tick: {
lineColor: '#5b5b5b',
lineStyle: 'solid',
lineWidth: '1px',
},
},
series: [
{
text: 'Poor',
values: [116, 125, 109, 86, 76, 95, 85, 77, 101, 90, 87, 62],
backgroundColor: '#93c2b7',
lineColor: '#67b3b4',
marker: {
backgroundColor: '#93c2b7',
borderColor: '#67b3b4',
borderWidth: '2px',
shadow: false,
},
},
{
text: 'Moderate',
values: [195, 206, 215, 140, 185, 176, 184, 190, 110, 174, 155, 165],
backgroundColor: '#19a6b1',
lineColor: '#2a8ea6',
marker: {
backgroundColor: '#19a6b1',
borderColor: '#2a8ea6',
borderWidth: '2px',
shadow: false,
},
},
{
text: 'Good',
values: [223, 284, 268, 274, 230, 199, 185, 208, 248, 295, 210, 225],
backgroundColor: '#3e7ba8',
lineColor: '#416a9b',
marker: {
backgroundColor: '#3e7ba8',
borderColor: '#416a9b',
borderWidth: '2px',
shadow: false,
},
},
{
text: 'Excellent',
values: [185, 175, 168, 154, 198, 175, 124, 145, 168, 174, 154, 125],
backgroundColor: '#495a95',
lineColor: '#3e3970',
marker: {
backgroundColor: '#495a95',
borderColor: '#3e3970',
borderWidth: '2px',
shadow: false,
},
},
],
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});