react-jsx-highcharts icon indicating copy to clipboard operation
react-jsx-highcharts copied to clipboard

(Drilldown) TypeError: Cannot read property 'turboThreshold' of undefined

Open bdevika opened this issue 5 years ago • 6 comments

when drill down is clicked on bar chart and data is updated im getting this error.

Versions

  • React JSX Highcharts version: ^3.4.0
  • Highcharts version: ^7.0.0
  • React version: ^16.5.2 image image

bdevika avatar Apr 08 '19 04:04 bdevika

Hi @bdevika, react-jsx-highcharts doesn't support drilldown at the moment. See #29

whawker avatar Apr 08 '19 08:04 whawker

Ok :(, @whawker Thank you for your response. Let us know once it supports

bdevika avatar Apr 08 '19 11:04 bdevika

Hi, @whawker, How to rerender Series forcefully?

bdevika avatar Apr 10 '19 10:04 bdevika

this sample helps to reproduce the issue https://stackblitz.com/edit/react-4ippjp?file=DrillChart.js

step to reproduce:

click any category click Update Chart button

bdevika avatar Apr 11 '19 11:04 bdevika

You could try with:

getChart = chart => {

  this.chart = chart;
  this.chart.update.bind(chart);
}

anajavi avatar Apr 11 '19 15:04 anajavi

@anajavi , Thank you for your suggestion, Unfortunately, it is not working as expected. It throws the same error. it happens when state variable get updates when the graph is in drill down state. Suppose data is static and state variable not used then it won't cause any problem.

bdevika avatar Apr 12 '19 03:04 bdevika