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

Support fully managed integration with React. Willing to contribute. #117

Open
coreymunn3 opened this issue Jun 5, 2024 · 1 comment
Open

Comments

@coreymunn3
Copy link

Is your feature request related to a problem? Please describe.
There seem to be alot of people having issues integrating this wonderful library with React components, see #85 and #100.

Describe the solution you'd like
I think this library could be made better by enabling react users to import a wrapper component that makes the integration simpler. It's not too hard, and in fact I would be happy to contribute to this. Maybe this should be a different library altogether, though. Please inform if this already exists or has already been created somewhere, but I could not find many if any free React sunburst chart libraries, and no other react sunburst libraries by the same creator.

This is how we would use this new component.

import ReactSunburst from 'sunburst-chart'
<SunburstChart  {...props that can override stated defaults} /> 

and the rest would happen automagically so that the user can focus on just feeding it some data.

Describe alternatives you've considered
I've created a custom implementation of this idea in a private repo

Additional context
none, at the moment. can provide code sandbox to illustrate how this component would work, if requested. Otherwise I'll just keep using my own custom implementation.

@vasturiano
Copy link
Owner

@coreymunn3 thanks for reaching out and for your suggestion.

If there is demand I think it's a good idea to have a ready packaged React binding of this component. But it should be indeed a separate library.

It can also be implemented with minimal code using react-kapsule.

Feel free to go ahead and create such a wrapper in a separate module, no problem at all. 👍

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