Skip to content

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

@weathermon83

Description

@weathermon83

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions