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 prop 'zoomType' not working with Highcharts 10.2.1 #376

Open
veloek opened this issue Oct 17, 2022 · 4 comments
Open

Chart prop 'zoomType' not working with Highcharts 10.2.1 #376

veloek opened this issue Oct 17, 2022 · 4 comments

Comments

@veloek
Copy link
Contributor

veloek commented Oct 17, 2022

Bug or Feature Request?

Bug

Description

Enabling zoom with zoomType="x" on the Chart component in a HighchartsStockChart broke with Highcharts version 10.2.1. Haven't been able to reproduce the issue with vanilla Highcharts.

How to reproduce

Run the demo. Try downgrading to Highcharts version 10.2.0 and verify that the issue is gone.

Live demo demonstrating bug

https://stackblitz.com/edit/react-ceq9uc?file=src/MyChart.js

Versions

  • React JSX Highcharts version: 5.0.0
  • Highcharts version: 10.2.1
  • React version: 18.2.0
@anajavi
Copy link
Collaborator

anajavi commented Oct 18, 2022

Highcharts deprecated zoomType and it somehow also broke at the same time.

Workaround is to use the new zooming prop:
https://stackblitz.com/edit/react-bp4fmf?file=src%2FMyChart.js

@veloek
Copy link
Contributor Author

veloek commented Oct 19, 2022

@anajavi Thanks for the workaround 👍 It seems like something broke in Highchart's update method: https://jsfiddle.net/3b1eqpkw/. I'll report a bug at their tracker with the same example. Ref: highcharts/highcharts#17861

@anajavi
Copy link
Collaborator

anajavi commented Oct 25, 2022

Maybe we should have a new element for zooming, for example:

<Zooming type="x" singleTouch={true} />

@veloek
Copy link
Contributor Author

veloek commented Oct 25, 2022

Yeah, I think that'd be nice. And perhaps a Panning component as well?

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

No branches or pull requests

2 participants