I'm trying to create a simple Stock Chart, like this but it throws this error in console:
Uncaught TypeError: Cannot read property 'width' of undefined
Tick.getLabelSideshighstock.src.js:5338
Tick.handleOverflowhighstock.src.js:5360
Tick.renderhighstock.src.js:5573
(anonymous function)highstock.src.js:7491
eachhighstock.src.js:1021
Axis.renderhighstock.src.js:7473
Chart.render.chart.seriesGroup.renderer.g.attr.zIndexhighstock.src.js:10529
eachhighstock.src.js:1021
Chart.renderhighstock.src.js:10528
Chart.firstRenderhighstock.src.js:10729
Chart.inithighstock.src.js:10813
Charthighstock.src.js:9399
Highcharts.StockChart
Why? I was thinking that the problem is from incorrect data (or bad conversions of date in timestamp), but the data seems to be correct. Here's the data I'm using:
[[1343833881,1],[1343833879,-1],[1343833876,0],[1343833007,0],[1343833003,0],
[1343833000,-1],[1343832993,-1],[1343832993,1],[1343497396,0],[1343497340,0.5],
[1343497330,-1],[1343497316,-0.5]]
If you try this data in the JSFiddle example of high stock linked above you will see that it doesn't work.