I am trying to initialize a HighStock Chart. If I use this method:
var chart = new Highcharts.Chart('StockChart', dataObject);
I get an error that div div was not found. If I use this method:
$('#container').highcharts('StockChart', dataObject);
The chart is canceled as expected. What am I doing wrong in the first method?
Regards, Marko
Here is the fiddle: http://jsfiddle.net/mkeuschn/K4Cj6/
Marko source
share