Highcharts Demo
author(s):
Torstein Hønsi
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="scores" style="height: 400px"></div>
JavaScript
(function() {
var onload = window.onload;
window.onload = function(){
if (typeof onload == "function") onload();
var options, chart;
options = {
"title": { "text": "example test title from highcharts gem" },
"legend": { "layout": "vertical","style": { } },
"xAxis": { "type": "datetime" },
"yAxis": { "title": { "text": null },"labels": { } },
"tooltip": { "enabled": true },
"credits": { "enabled": false },
"plotOptions": {
"areaspline": {
"pointInterval": 86400,
"pointStart": "2012-10-24T16:00:18Z"
}
},
"chart": { "defaultSeriesType": "area","renderTo": "scores" },
"subtitle": { },
"series": [
{ "name": "John","data": [ 3,20,3,5,4,10,12,3,5,6,7,7,80,9,9 ] },
{ "name": "Jane","data": [ 1,3,4,3,3,5,4,-46,7,8,8,9,9,0,0,9 ] }
]
};
chart = new Highcharts.Chart(options);
};
})()