yash27
Posts: 4
Joined: Mon Mar 26, 2018 5:58 am

pointStart and hoverSeries of undefined in stock chart

This question is much similar as this one https://forum.highcharts.com/post141168 ... 7e#p141168 but the solution of this question didn't solve my problem.

In my application , I am using candlestick stock chart and at the time of initialization I am setting navigator and rangeSelector to false. Now if I add a new data inside a series like this.

Code: Select all

function updateData(newData){
   chart.series[0].setData([]);
   chart.series[0].update({
      data: newData
   });
   // or we can use chart.series[0].setData(newData)
}
Now if I enable the navigator i.e.

Code: Select all

navigator : {
   enabled : true
}
and update the series data i.e to call updateData() method. I am occurring following error

Code: Select all

Cannot read property 'hoverSeries' of undefined
    at e.destroy (webpack-internal:///../../../../highcharts/highcharts.js:316)
    at eval (webpack-internal:///../../../../highcharts/modules/stock.src.js:7402)
    at Array.forEach (<anonymous>)
    at a.each (webpack-internal:///../../../../highcharts/highcharts.js:30)
    at Navigator.destroy (webpack-internal:///../../../../highcharts/modules/stock.src.js:7400)
    at Navigator.update (webpack-internal:///../../../../highcharts/modules/stock.src.js:6050)
    at Object.eval (webpack-internal:///../../../../highcharts/highcharts.js:341)
    at a.objectEach (webpack-internal:///../../../../highcharts/highcharts.js:30)
    at a.Chart.update (webpack-internal:///../../../../highcharts/highcharts.js:341)
    at SafeSubscriber.eval [as _next]
and also

Code: Select all

Cannot set property 'pointStart' of undefined
    at e.updatedDataHandler (stock.src.js:7312)
    at eval (highcharts.js:31)
    at Array.forEach (<anonymous>)
    at Object.a.each (highcharts.js:29)
    at a.fireEvent (highcharts.js:31)
    at eval (highcharts.js:252)
    at Array.forEach (<anonymous>)
    at a.each (highcharts.js:29)
    at a.Chart.redraw (highcharts.js:252)
    at a.Chart.eval (stock.src.js:9657)
I have updated my highcharts to 6.2.0 but this didn't solve my problem.
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: pointStart and hoverSeries of undefined in stock chart

Hi, yash27!

Could you prepare a simplified demo (jsFiddle) and try to reproduce your errors online? If I had a piece of code I could work on, I would be able to debug it and test some solutions, but for this moment I can't say much.

Kind regards
Rafal Sebestjanski,
Highcharts Team Lead

Return to “Highcharts Stock”