Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chart.update with a drilldown doesn't work #7600

Closed
Munksgaard opened this issue Jan 2, 2018 · 6 comments
Closed

chart.update with a drilldown doesn't work #7600

Munksgaard opened this issue Jan 2, 2018 · 6 comments
Assignees
Labels

Comments

@Munksgaard
Copy link
Contributor

@Munksgaard Munksgaard commented Jan 2, 2018

Expected behaviour

Using chart.update to update the data series and a corresponding change to the drilldown data should work.

Actual behaviour

It doesn't

Live demo with steps to reproduce

Here's an example: http://jsfiddle.net/f6fydL8p/1/

Note that the two data sets (before and after) are pretty much the same, but after clicking the update button which updates the series and drilldown, trying to drill down into one of the columns doesn't actually work.

Affected browser(s)

Firefox and chrome

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Jan 3, 2018

Hi @Munksgaard

Thank you for reporting this bug. It looks like chart.options.drilldown and chart.userOptions.drilldown are not updated which causes this. Possible workaround is to overwrite these options manually, instead of using chart.update() method, demo: http://jsfiddle.net/f6fydL8p/4/

@pawelfus pawelfus added the Type: Bug label Jan 3, 2018
@TorsteinHonsi TorsteinHonsi self-assigned this Jan 4, 2018
@bdevika
Copy link

@bdevika bdevika commented Apr 11, 2019

it is not working for me it throws TypeError: Cannot read property 'turboThreshold' of undefined

Same feature i need using react-jsx-highchart.

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Apr 11, 2019

Hi @bdevika,
Thank you for reporting, but when I run the demos from the thread, all works properly. Could you update one of them with your code? It will allow us to debug.

@bdevika
Copy link

@bdevika bdevika commented Apr 11, 2019

Hi @sebastianbochan Here is the sample https://stackblitz.com/edit/react-4ippjp?file=DrillChart.js

step to reproduce:

  1. click any category
  2. click Update Chart button
@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Apr 12, 2019

Hi @bdevika

Thanks for the demo, but could you recreate issue without react-jsx-highchart? This is not our wrapper, and from it's github issues, it looks like drilldown is not supported, only available by some workaround (which may cause this issue). Thanks once again!

@bdevika
Copy link

@bdevika bdevika commented Jul 31, 2019

Hi, Sorry for the delayed reply, Yes you are right @pawelfus react-jsx-highchart wrapper not supporting drill-down feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants