<!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 {
min-height: 530px;
width: 100%;
height: 100%;
}
.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: 'mixed',
backgroundColor: '#F5F5F5',
plot: {
barsOverlap: '100%',
hoverState: {
visible: false
}
},
plotarea: {
marginRight: '10%',
marginLeft: '10%'
},
scaleX: {
visible: false
},
scaleY: {
values: '0:100:10',
format: '%v%',
guide: {
visible: false
},
lineColor: '#A8A8A8',
lineWidth: '1px',
markers: [{
type: 'line',
range: 55
}],
tick: {
lineColor: '#A8A8A8',
lineWidth: '1px'
}
},
crosshairX: {
lineWidth: '0px',
marker: {
visible: false
},
plotLabel: {
visible: false
},
scaleLabel: {
visible: false
}
},
tooltip: {
visible: false
},
series: [{
type: 'bar',
values: [
[0, 100],
[1, 100],
[2, 100],
[3, 100]
],
barWidth: '70px',
fillAngle: 180,
gradientColors: '#A8A8A8 #ffffff #A8A8A8',
gradientStops: '0.1 0.5 1'
},
{
type: 'bar',
values: [
[0, 65],
[1, 55],
[2, 70],
[3, 56]
],
alpha: 0.7,
backgroundColor: '#4f4f4f',
barWidth: '70px'
},
{
type: 'scatter',
values: [
[0, 60],
[1, 72],
[2, 55],
[3, 41]
],
marker: {
type: 'rectangle',
backgroundColor: '#FFB63F',
borderWidth: '0px',
width: '88%',
height: '6px'
}
},
{
type: 'scatter',
values: [
[0, 41],
[1, 60],
[2, 49],
[3, 48]
],
marker: {
type: 'cross',
lineColor: '#00B3F1',
lineWidth: '3px',
size: '10px'
}
},
{
type: 'scatter',
values: [
[0, 80],
[1, 49],
[2, 65],
[3, 79]
],
marker: {
type: 'circle',
backgroundColor: 'none',
borderColor: '#FC4475',
borderWidth: '3px',
size: '10px'
}
},
{
type: 'scatter',
values: [
[0, 51],
[1, 30],
[2, 78],
[3, 64]
],
marker: {
type: 'triangle',
backgroundColor: 'none',
borderColor: '#00DA8F',
borderWidth: '3px',
size: '10px'
}
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});
</script>
</body>
</html>
let chartConfig = {
type: 'mixed',
backgroundColor: '#F5F5F5',
plot: {
barsOverlap: '100%',
hoverState: {
visible: false
}
},
plotarea: {
marginRight: '10%',
marginLeft: '10%'
},
scaleX: {
visible: false
},
scaleY: {
values: '0:100:10',
format: '%v%',
guide: {
visible: false
},
lineColor: '#A8A8A8',
lineWidth: '1px',
markers: [
{
type: 'line',
range: 55
}
],
tick: {
lineColor: '#A8A8A8',
lineWidth: '1px'
}
},
crosshairX: {
lineWidth: '0px',
marker: {
visible: false
},
plotLabel: {
visible: false
},
scaleLabel: {
visible: false
}
},
tooltip: {
visible: false
},
series: [
{
type: 'bar',
values: [[0, 100], [1, 100], [2, 100], [3, 100]],
barWidth: '70px',
fillAngle: 180,
gradientColors: '#A8A8A8 #ffffff #A8A8A8',
gradientStops: '0.1 0.5 1'
},
{
type: 'bar',
values: [[0, 65], [1, 55], [2, 70], [3, 56]],
alpha: 0.7,
backgroundColor: '#4f4f4f',
barWidth: '70px'
},
{
type: 'scatter',
values: [[0, 60], [1, 72], [2, 55], [3, 41]],
marker: {
type: 'rectangle',
backgroundColor: '#FFB63F',
borderWidth: '0px',
width: '88%',
height: '6px'
}
},
{
type: 'scatter',
values: [[0, 41], [1, 60], [2, 49], [3, 48]],
marker: {
type: 'cross',
lineColor: '#00B3F1',
lineWidth: '3px',
size: '10px'
}
},
{
type: 'scatter',
values: [[0, 80], [1, 49], [2, 65], [3, 79]],
marker: {
type: 'circle',
backgroundColor: 'none',
borderColor: '#FC4475',
borderWidth: '3px',
size: '10px'
}
},
{
type: 'scatter',
values: [[0, 51], [1, 30], [2, 78], [3, 64]],
marker: {
type: 'triangle',
backgroundColor: 'none',
borderColor: '#00DA8F',
borderWidth: '3px',
size: '10px'
}
}
]
};
zingchart.render({
id: 'myChart',
data: chartConfig,
height: '100%',
width: '100%',
});