var myConfig = {
type: "line",
labels : [
{
x : "15%",
y : "15%",
fontSize : 18,
text : "ZONE"
},
{
x : "15%",
y : "25%",
fontSize : 18,
text : "A"
},
{
x : "15%",
y : "34%",
fontSize : 18,
text : "B"
},
{
x : "15%",
y : "42%",
fontSize : 18,
text : "C"
},
{
x : "15%",
y : "50%",
fontSize : 18,
text : "C"
},
{
x : "15%",
y : "59%",
fontSize : 18,
text : "B"
},
{
x : "15%",
y : "68%",
fontSize : 18,
text : "A"
},
],
scaleY : {
values : "-100:100:10",
markers : [
{
type : 'line',
range : [75],
lineWidth : 2,
lineStyle : "dotted",
lineColor : "#ff2424"
},
{
type : 'area',
range : [50,75],
alpha : 0.6,
backgroundColor : "#ff7171"
},
{
type : 'area',
range : [25,50],
alpha : 0.6,
backgroundColor : "#fdff71"
},
{
type : 'area',
range : [0,25],
alpha : 0.6,
backgroundColor : "#98ff71"
},
{
type : 'line',
range : [0],
lineWidth : 2,
lineStyle : "dotted",
lineColor : "#006dff"
},
{
type : 'area',
range : [0,-25],
alpha : 0.6,
backgroundColor : "#98ff71"
},
{
type : 'area',
range : [-25,-50],
alpha : 0.6,
backgroundColor : "#fdff71"
},
{
type : 'area',
range : [-50,-75],
alpha : 0.6,
backgroundColor : "#ff7171"
},
{
type : 'line',
range : [-75],
lineWidth : 2,
lineStyle : "dotted",
lineColor : "#ff2424"
}
]
},
series : [
{
values : [2,4,4,25,36,14,23,23,24,25,16,8],
}
]
};
zingchart.render({
id : 'myChart',
data : myConfig,
height: 400,
width: 600
});
<!DOCTYPE html>
<html>
<head>
<script src= "https://cdn.zingchart.com/zingchart.min.js"></script>
</head>
<body>
<div id='myChart'></div>
</body>
</html>