Highcharts Demo
author(s): Torstein Hønsi
by Arif Khoja
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
// Data retrieved from http://vikjavev.no/ver/index.php?spenn=2d&sluttid=16.06.2015.
Highcharts.chart('container', {
chart: {
type: 'spline'
},
title: {
text: 'Wind speed during two days'
},
subtitle: {
text: 'May 31 and and June 1, 2015 at two locations in Vik i Sogn, Norway'
},
xAxis: {
categories: [0,10,20,30,40,50,60,70,80,90,100]
},
yAxis: {
title: {
text: 'Temperature'
},
labels: {
formatter: function () {
return this.value + '°';
}
}
},
tooltip: {
valueSuffix: ' m/s'
},
plotOptions: {
spline: {
lineWidth: 4,
states: {
hover: {
lineWidth: 5
}
},
marker: {
enabled: false
},
pointInterval: 10, // one hour
pointStart: 0
}
},
series: [{
name: 'Hestavollane',
data: [0,3,12,20,21,22,27,29,32]
}],
navigation: {
menuItemStyle: {
fontSize: '10px'
}
}
});