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

Comparison with the official React wrapper #138

Closed
dandv opened this issue Jul 18, 2018 · 2 comments
Closed

Comparison with the official React wrapper #138

dandv opened this issue Jul 18, 2018 · 2 comments
Labels

Comments

@dandv
Copy link
Contributor

dandv commented Jul 18, 2018

Hi Will, I read your blog post about this library, and saw the link at the top pointing to the official React wrapper for Highcharts, which they released on April 11.

I see there have been commits since then, so I'm curious how this library compares with the official wrapper. BTW, thanks for explaining in the README how it compares with other libraries!

@whawker
Copy link
Owner

whawker commented Jul 18, 2018

I believe my library provides a simpler way for React to interact with a Highcharts chart, by providing an abstraction layer.

All the official Highcharts wrapper does is take a large configuration option and call this.chart.update. Which is largely fine for static charts, however for more complex use cases where the chart needs to be dynamic, you need to learn the Highcharts API to update your chart's configuration

I believe my library hides all that Highcharts complexity away. For instance the application author does not need to know that you should call chart.series[0].setData([ /* array */]) to update the data in the first series. Instead just simply to update the data prop on the relevant series component.

I also believe my library feels more like "React", I think passing around large configuration objects in a old jQuery-esque style doesn't translate well to React applications.

@dandv
Copy link
Contributor Author

dandv commented Jul 18, 2018

Thank you!

@dandv dandv closed this as completed Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants