Highcharts Demo
author(s): Torstein Hønsi
by msjaiswal
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
Accessing chart after it has loaded using load() callback function.
<div id="container" style="height: 400px"></div>
JavaScript
$(function () {
// create the chart
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
events: {
load: function(event) {
alert ('Chart loaded with series :'+ this.series[0].name);
console.log(this);
}
}
},
xAxis: {
},
series: [{
animation: false,
name : 'TestSeries',
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
chart.title = "hello";
});