<!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></style>
</head>
<body>
<div id='myChart'></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
var myConfig = {
"type": "line",
"title": {
"text": "Logarithmic Scale"
},
"crosshair-x": {
"plot-label": {
"text": "<strong>%t:</strong> %v m/s",
"thousands-separator": ",",
"background-color": "white",
"border-width": 1,
"border-color": "gray",
"border-radius": "5px",
"multiple": true
},
"scale-label": {
"text": "%v seconds",
"font-color": "black",
"background-color": "white",
"border-width": 1,
"border-color": "gray",
"border-radius": "5px",
},
"line-color": "black",
"line-width": 1
},
"scale-x": {
"values": "0:16:2",
"label": {
"text": "Time (s)"
},
"item": {
"font-size": 10
},
"guide": {
"visible": true,
"line-color": "black",
"line-style": "dotted",
"alpha": 1
}
},
"scale-y": {
"progression": "log",
"log-base": 10,
"thousands-separator": ",",
"label": {
"text": "Velocity (m/s)"
},
"item": {
"font-size": 10
},
"guide": {
"line-style": "solid",
"line-width": 2,
"line-color": "gray",
"alpha": 0.9
},
"minor-ticks": 4,
"minor-guide": {
"line-style": "solid",
"line-width": 1,
"line-color": "gray",
"alpha": 0.9
}
},
"plot": {
"aspect": "spline",
"tooltip": {
"visible": false
}
},
"plotarea": {
"margin-left": "dynamic",
"margin-bottom": "dynamic"
},
"series": [{
"values": [
[0, 0],
[2, 5],
[4, 66],
[6, 230],
[8, 590],
[10, 1500],
[12, 9000],
[14, 40000],
[16, 660000]
],
"text": "Rocket A",
"line-color": "#0066cc",
"marker": {
"type": "square",
"background-color": "#0066cc"
},
"guide-label": {
"font-color": "#0066cc"
}
},
{
"values": [
[0, 0],
[2, 3],
[4, 30],
[6, 200],
[8, 1100],
[10, 5000],
[12, 31000],
[14, 99000],
[16, 350000]
],
"text": "Rocket B",
"line-color": "#cc0000",
"marker": {
"type": "diamond",
"background-color": "#cc0000"
},
"guide-label": {
"font-color": "#cc0000"
}
},
{
"values": [
[0, 0],
[2, 4],
[4, 14],
[6, 102],
[8, 3200],
[10, 32200],
[12, 111000],
[14, 311000],
[16, 500000]
],
"text": "Rocket B",
"line-color": "#009933",
"marker": {
"type": "triangle",
"background-color": "#009933"
},
"guide-label": {
"font-color": "#009933"
}
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 400,
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'></div>
</body>
</html>
var myConfig = {
"type": "line",
"title": {
"text": "Logarithmic Scale"
},
"crosshair-x": {
"plot-label": {
"text": "<strong>%t:</strong> %v m/s",
"thousands-separator": ",",
"background-color": "white",
"border-width": 1,
"border-color": "gray",
"border-radius": "5px",
"multiple": true
},
"scale-label": {
"text": "%v seconds",
"font-color": "black",
"background-color": "white",
"border-width": 1,
"border-color": "gray",
"border-radius": "5px",
},
"line-color": "black",
"line-width": 1
},
"scale-x": {
"values": "0:16:2",
"label": {
"text": "Time (s)"
},
"item": {
"font-size": 10
},
"guide": {
"visible": true,
"line-color": "black",
"line-style": "dotted",
"alpha": 1
}
},
"scale-y": {
"progression": "log",
"log-base": 10,
"thousands-separator": ",",
"label": {
"text": "Velocity (m/s)"
},
"item": {
"font-size": 10
},
"guide": {
"line-style": "solid",
"line-width": 2,
"line-color": "gray",
"alpha": 0.9
},
"minor-ticks": 4,
"minor-guide": {
"line-style": "solid",
"line-width": 1,
"line-color": "gray",
"alpha": 0.9
}
},
"plot": {
"aspect": "spline",
"tooltip": {
"visible": false
}
},
"plotarea": {
"margin-left": "dynamic",
"margin-bottom": "dynamic"
},
"series": [{
"values": [
[0, 0],
[2, 5],
[4, 66],
[6, 230],
[8, 590],
[10, 1500],
[12, 9000],
[14, 40000],
[16, 660000]
],
"text": "Rocket A",
"line-color": "#0066cc",
"marker": {
"type": "square",
"background-color": "#0066cc"
},
"guide-label": {
"font-color": "#0066cc"
}
},
{
"values": [
[0, 0],
[2, 3],
[4, 30],
[6, 200],
[8, 1100],
[10, 5000],
[12, 31000],
[14, 99000],
[16, 350000]
],
"text": "Rocket B",
"line-color": "#cc0000",
"marker": {
"type": "diamond",
"background-color": "#cc0000"
},
"guide-label": {
"font-color": "#cc0000"
}
},
{
"values": [
[0, 0],
[2, 4],
[4, 14],
[6, 102],
[8, 3200],
[10, 32200],
[12, 111000],
[14, 311000],
[16, 500000]
],
"text": "Rocket B",
"line-color": "#009933",
"marker": {
"type": "triangle",
"background-color": "#009933"
},
"guide-label": {
"font-color": "#009933"
}
}
]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 400,
width: "100%"
});