<!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>
html,
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#myChart {
height: 100%;
width: 100%;
min-height: 150px;
}
.zc-ref {
display: none;
}
</style>
</head>
<body>
<div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
var myConfig = {
graphset: [{
type: "line",
x: "0%",
y: "0%",
height: "100%",
width: "100%",
plot: {
selectionMode: 'multiple',
},
scaleY: {
minValue: 0,
maxValue: 10,
step: 1
},
scaleX: {
// minValue: 1480883248000,
// step: 720000,//12min
transform: {
type: 'date',
all: '%m/%d/%y %h:%i %A'
},
},
series: [{
zIndex: 300,
text: 'f',
values: [
[1480883248000, 1],
[1480898368000, 1],
[1480883248000, 1],
[1480883968000, 1],
[1480884688000, 1],
[1480885408000, 1],
[1480886128000, 1],
[1480886848000, 1],
[1480887568000, 1],
[1480888288000, 1],
[1480889008000, 1],
[1480889728000, 1],
[1480890448000, 1],
[1480891168000, 1],
[1480891888000, 1],
[1480892608000, 1],
[1480893328000, 1],
[1480894048000, 1],
[1480894768000, 1],
[1480895488000, 1],
[1480896208000, 1],
[1480896928000, 1],
],
marker: {
type: 'circle',
size: 2
},
selectedMarker: { //sets the styling for selected marker (per series)
type: "star5",
backgroundColor: "black",
borderColor: "black",
borderWidth: 2,
size: 8
}
},
{
text: 'a',
values: [
[1480883728000, 1]
],
marker: {
type: 'triangle',
size: 7
},
selectedMarker: { //sets the styling for selected marker (per series)
type: "star3",
backgroundColor: "black",
borderColor: "black",
borderWidth: 2,
size: 8
}
},
{
text: 'n',
values: [
[1480894168000, 1]
],
marker: {
type: 'square', //circle
size: 7
},
selectedMarker: { //sets the styling for selected marker (per series)
type: "star6",
backgroundColor: "black",
borderColor: "black",
borderWidth: 2,
size: 8
}
}
]
}]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: '100%',
width: '100%'
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
</head>
<body>
<div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
</body>
</html>
html,
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#myChart {
height: 100%;
width: 100%;
min-height: 150px;
}
.zc-ref {
display: none;
}
var myConfig = {
graphset: [{
type: "line",
x: "0%",
y: "0%",
height: "100%",
width: "100%",
plot: {
selectionMode: 'multiple',
},
scaleY: {
minValue: 0,
maxValue: 10,
step: 1
},
scaleX: {
// minValue: 1480883248000,
// step: 720000,//12min
transform: {
type: 'date',
all: '%m/%d/%y %h:%i %A'
},
},
series: [{
zIndex: 300,
text: 'f',
values: [
[1480883248000, 1],
[1480898368000, 1],
[1480883248000, 1],
[1480883968000, 1],
[1480884688000, 1],
[1480885408000, 1],
[1480886128000, 1],
[1480886848000, 1],
[1480887568000, 1],
[1480888288000, 1],
[1480889008000, 1],
[1480889728000, 1],
[1480890448000, 1],
[1480891168000, 1],
[1480891888000, 1],
[1480892608000, 1],
[1480893328000, 1],
[1480894048000, 1],
[1480894768000, 1],
[1480895488000, 1],
[1480896208000, 1],
[1480896928000, 1],
],
marker: {
type: 'circle',
size: 2
},
selectedMarker: { //sets the styling for selected marker (per series)
type: "star5",
backgroundColor: "black",
borderColor: "black",
borderWidth: 2,
size: 8
}
},
{
text: 'a',
values: [
[1480883728000, 1]
],
marker: {
type: 'triangle',
size: 7
},
selectedMarker: { //sets the styling for selected marker (per series)
type: "star3",
backgroundColor: "black",
borderColor: "black",
borderWidth: 2,
size: 8
}
},
{
text: 'n',
values: [
[1480894168000, 1]
],
marker: {
type: 'square', //circle
size: 7
},
selectedMarker: { //sets the styling for selected marker (per series)
type: "star6",
backgroundColor: "black",
borderColor: "black",
borderWidth: 2,
size: 8
}
}
]
}]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: '100%',
width: '100%'
});