var myConfig = {
type: 'line',
utc: true,
timezone: -5,
scaleX: {
minValue: 1471496400000,
maxValue: 1471579200000,
step: 'hour',
transform: {
type: 'date',
all: '%g%a'
},
label: {
text: 'X-Axis'
},
item: {
fontSize: 10
},
maxItems: 24
},
scaleX2: {
minValue: 1470891600000,
maxValue: 1470974400000,
placement: 'default',
blended: true,
visible: false,
step: 'hour',
transform: {
type: 'date',
all: '%g%a'
},
item: {
fontSize: 10
},
},
scaleY: {
values: '0:10:1',
label: {
text: 'Y-Axis'
},
item: {
fontSize: 10
},
guide: {
lineStyle: 'solid'
}
},
plot: {
tooltip: {
visible: false
}
},
crosshairX: {
plotLabel: {
multiple: true
}
},
series: [
{
scales: 'scaleX, scaleY',
values: [
[1471496400000, 3],
[1471500000000, 7],
[1471503600000, 5],
[1471507200000, 9],
[1471510800000, 4],
[1471514400000, 5],
[1471518000000, 2]
],
text: 'Today'
},
{
scales: 'scaleX2, scaleY',
values: [
[1470891600000, 5],
[1470895200000, 6],
[1470898800000, 4],
[1470902400000, 9],
[1470906000000, 1],
[1470909600000, 5],
[1470913200000, 6],
[1470916800000, 3],
[1470920400000, 5],
[1470924000000, 7],
[1470927600000, 8],
[1470931200000, 2],
[1470934800000, 3],
[1470938400000, 1],
[1470942000000, 4],
[1470945600000, 6],
[1470949200000, 7],
[1470952800000, 3],
[1470956400000, 5],
[1470960000000, 6],
[1470963600000, 2],
[1470967200000, 3],
[1470970800000, 5],
[1470974400000, 4]
],
text: 'Last Week'
}
],
legend: {
align: 'center',
verticalAlign: 'bottom',
marker: {
type: 'circle',
size: 4,
showLine: true
},
borderWidth: 1
}
};
zingchart.render({
id : 'myChart',
data : myConfig,
height: 400,
width: 600
});
<head>
<script src= "https://cdn.zingchart.com/zingchart.min.js"></script>
</head>
<body>
<div id='myChart'></div>
</body>