Highcharts Demo
author(s):
Torstein Hønsi
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/series-label.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="container"></div>
CSS
#container {
min-width: 310px;
max-width: 800px;
height: 400px;
margin: 0 auto
}
JavaScript
pixieData = {
firstPass: [{
x: 1544400000000,
y: 201.1
},
{
x: 1544486400000,
y: 202.9
},
{
x: 1544572800000,
y: 194
},
{
x: 1544659200000,
y: 205.01
}
]
}
Highcharts.chart('container', {
title: {
text: 'First Pass'
},
xAxis: {
type: 'datetime',
},
series: [{
name: 'First Pass',
color: 'green',
data: pixieData.firstPass
}],
});