Highcharts Demo
author(s):
Torstein Hønsi
by Swapnil Navalakha
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 300px"></div>
<div id="report"></div>
CSS
.needle{
stroke-width: 15px;
stroke: #999999;
d: path("M -15 -1.5 L 105 -1.5 150 -0.5 150 0.5 105 1.5 -15 1.5 z");
}
JavaScript
// M 70.2500 77.5000 A 7.7500 7.7500 0 0 0 85.7500 77.5000 L 78.0000 0.0000 Z
// M 70.2500 77.5000 A 7.7500 7.7500 0 0 0 85.7500 77.5000 L 78.0000 0.0000 Z
Highcharts.chart('container', {
xAxis: {
plotLines: [{ // mark the weekend
color: 'black',
//width: 3,
value: Date.UTC(2010, 0, 4),
className: 'needle'
}],
tickInterval: 24 * 3600 * 1000,
// one day
type: 'datetime'
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4],
pointStart: Date.UTC(2010, 0, 1),
pointInterval: 24 * 3600 * 1000
}]
});