Multiple streams chart with solid fill and smoothing
HTML
HTML
<script src="https://cdn.zoomcharts-cloud.com/1/nightly/zoomcharts.js"></script>
<div id="demo"></div>
CSS
CSS
//No CSS for this example
JavaScript
JavaScript
chart= new TimeChart({
"stacks": {
"default": {
"type": "based",
"separateNegativeValues": true
}
},
"series": [
{
"stack": "based",
"name": "Min temperature",
"type": "line",
"data": {
"index": 1,
"aggregation": "min"
},
"style": {
"smoothing": true,
"lineColor": "#eab404"
}
},
{
"stack": "based",
"name": "Averga temperature",
"type": "line",
"data": {
"index": 1,
"aggregation": "avg"
},
"style": {
"smoothing": true,
"lineColor": "#b0dc0b",
"fillColor": "#b0dc0b"
}
},
{
"stack": "based",
"name": "Max temperature",
"type": "line",
"data": {
"index": 1,
"aggregation": "max"
},
"style": {
"smoothing": true,
"lineColor": "#2fc32f",
"fillColor": "#2fc32f"
}
}
],
"container": "demo",
"data": [
{
"units": [
"h"
],
"url": "/dvsl/data/time-chart/temperature-kuldiga-h.json"
}
],
"toolbar": {
"fullscreen": true,
"enabled": true
},
"interaction": {
"resizing": {
"enabled": false
}
}
})