Possible Duplicate:
how to add items to an array dynamically in javascript
I’m adding data dynamically to highchart but it’s showing only empty chart after loading
Here is the link that i tried,
http://jsfiddle.net/XjzFH/30/ and
http://jsfiddle.net/XjzFH/31/
You can’t just push data into the series object and expect it to show up
You will need to use the
Series.addPoint()method. This method is really recommended only when you want to set single or a subset of points.If you wish to set all points dynamically (like in your case), then you should use the
Series.setData()method insteadAdd points dynamically | Highchart & Highstock @ jsFiddle