-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Migrating code from react-chart-js to chartjs #6555
Comments
Hi, I would like to contribute to the project and saw this issue that seemed like a good first task to tackle. I registered to attend the next team meetup to introduce myself and maybe talk a bit more about this issue. In the meantime, I took the liberty to dig a little bit more into the matter here. I saw that Anyhow, I look forward to discuss the matter with you guys. Cheers |
Hey @htulipe, we're glad that you digged into this issue. The point you put out is valid. Redoing the charts in So, you can start working on this and see how it goes. I'll be able to help you if you need any. Thanks for your interest! |
Hi @royallsilwallz thanks for your reply. I see your point, I dug a little bit deeper as a consequence, here's what I found.
For For Where to go from here? First of all, I looked at the BC changes of React 19 and the codebase of If that does not happen, we can integrate the codebase of As a recap, I would say there is no rush in ditching |
Hey @htulipe, that's a really deep investigation to the problem. Do you have any thoughts on this @tsmock ? |
IIRC, most of the test issues in the chartjs PR were due to lazy imports. So it might be an issue if there are lazy imports in updated libraries. If there are, it is a "simple" matter of figuring out what the lazy imports are and preloading them in the test. I doubt chartjs will use lazy imports in their code (as a library). With that said, my personal feeling is avoid deprecated/effectively deprecated libraries whenever possible. While we can probably continue using |
Hi @royallsilwallz the only thing we can do right now is reimplementing react-chartjs-2. It implies ditching all the Typescript they have. Are you sure you want to do that? For me it looks like a bad idea since there is a pr to add TS support to this project. |
I mean, we would end up executing the exact same code but without type safety and tests (they have unit tests) |
While working on developing partner pages, @VinayakRugvedi flagged the following:
Going ahead we should stick to chartjs and move the existing react-chartjs components to chartjs as well.
cc @royallsilwallz @emi420 @manjitapandey
The text was updated successfully, but these errors were encountered: