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

ChartJS crashes sometimes when rendering multiple line charts on same chart #11859

Closed
weathermon83 opened this issue Aug 12, 2024 · 0 comments · Fixed by #11863
Closed

ChartJS crashes sometimes when rendering multiple line charts on same chart #11859

weathermon83 opened this issue Aug 12, 2024 · 0 comments · Fixed by #11863

Comments

@weathermon83
Copy link

Expected behavior

I am using ChartJS to display multiple weather models on the chart for comparing data between models. There can be up to 6 different line charts being displayed at the same time. I have set up an animation from left to right and it works great most of the time and displays all the data no issues
image

Current behavior

Randomly, when it starts to display the data it will throw up a console error. I have had a look through all my data (labels and data) and cannot see any reason why it would be throwing an error. A comparison between when the data is good and when it crashes shows both the same data.
image
image

Reproducible sample

https://codepen.io/Mike-Manning/pen/wvLrYNL

Optional extra steps/info to reproduce

Sometimes when calling .update() it will trigger the console error. All data is dynamically populated and then .update() is called at the end. I have copied and pasted sample data and some of the custom plugins to codepen.

Possible solution

No response

Context

No response

chart.js version

v4.4.3

Browser name and version

Chrome, 127.0.6533.100

Link to your project

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant