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

[Bug]: Remembering options at charts based on same element #1207

Open
1 task
iBreadInside opened this issue Dec 20, 2023 · 0 comments
Open
1 task

[Bug]: Remembering options at charts based on same element #1207

iBreadInside opened this issue Dec 20, 2023 · 0 comments
Labels

Comments

@iBreadInside
Copy link

iBreadInside commented Dec 20, 2023

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Current behavior:
Few same chart components renders with same options.

Expected behavior:
Providing different options as props causes different charts visualization.

Sandbox: https://codesandbox.io/p/sandbox/same-chart-components-different-options-6l3y5g?file=%2Fsrc%2FApp.js%3A11%2C55

Reproduction

  1. Make a chart component with options as a prop; 2. Render two or more of it; 3. Provide different options as a props;

chart.js version

4.4.0

react-chartjs-2 version

5.1.0

Possible solution

No response

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

1 participant