So i asked a couple of days ago Here as to which charts one can use for Stock based applications and i finally settled with HighCharts Simply because its so awesome.
Now my chart renders this way and it is as expected.
The next step for me is to place flags on them . Which i am able to do while creating the chart itself and it renders like this:
// some code here series: [{ id: "dataSeries", name: "datadata", type: "candlestick", data: items },{ id: "flagSeries", name: "flagflag", type: "flags", data: [{ x: 1301651400000, title: 'B', text: 'Shape: "circlepin"' }] }] // some code here
But when i try to do the same dynamically as directed here , i get an error that says Uncaught TypeError: Cannot read property 'shift' of undefined
//some code here series: [{ id: "dataSeries", name: "datadata", type: "candlestick", data: items },{ id: "flagSeries", name: "flagflag", type: "flags", data: [] }] //some code here $('button').click(function(){ var ser = chart.get("flagSeries"); console.log(ser); ser.addPoint({ x: 1301672700000, title: 'C', text: 'Shape: "circlepin"' }); }); //some code here
How come it works there but not when i try it ? :(