Simple line example
Two series show same data with different aggregations - min and max.
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
var t = new TimeChart(
{
container: document.getElementById("demo"),
data:
{
units:["h"],
url: "/dvsl/data/time-chart/temperature-kuldiga-h.json"
},
valueAxisDefault:{ title:"Temperature" },
series:[
{
name:"Max temperature",
id:"maxTemp",
type:"line",
data:{
index:1,
aggregation:"max"
},
style:{
smoothing: true,
lineColor:"red",
lineWidth: 3
}
},
{
name:"Min temperature",
id:"minTemp",
type:"line",
data:{
index:1,
aggregation:"min"
},
style:{
smoothing: true,
lineColor:"blue",
lineWidth: 3
}
}
]
}
);