We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current behavior: When changing the prop type, the underlying chart does not update until the entire component re-renders.
type
Expected behavior: When changing the prop type, the underlying chart updates (redraws) with the new type.
https://codesandbox.io/s/chart-type-update-issue-iym5e9
v3.8.0
v4.2.0
Redraw the chart upon type change, I will be submitting a PR momentarily
[edit] Confirmation of ChartJS not working: https://stackoverflow.com/questions/36949343/chart-js-dynamic-changing-of-chart-type-line-to-bar-as-example
The text was updated successfully, but these errors were encountered:
feat: assure redraw occurs when type changes (reactchartjs#1054)
9e79b43
feat: assure redraw occurs when type changes (#1054) (#1055)
bf0538f
@BlenderDude Released in v4.3.0
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Would you like to work on a fix?
Current and expected behavior
Current behavior:
When changing the prop
type
, the underlying chart does not update until the entire component re-renders.Expected behavior:
When changing the prop
type
, the underlying chart updates (redraws) with the new type.Reproduction
https://codesandbox.io/s/chart-type-update-issue-iym5e9
chart.js version
v3.8.0
react-chartjs-2 version
v4.2.0
Possible solution
Redraw the chart upon type change, I will be submitting a PR momentarily
[edit] Confirmation of ChartJS not working: https://stackoverflow.com/questions/36949343/chart-js-dynamic-changing-of-chart-type-line-to-bar-as-example
The text was updated successfully, but these errors were encountered: