When using Chart.js to display data in a bar chart, there is an issue with overlapping data, especially when the datasets array contains a large number of objects. Some bars are rendered incorrectly, overlapping each other. When the dataset becomes even larger (e.g., several thousand objects), the plugin stops rendering the chart entirely, showing only an empty space or a placeholder square. #12000
Labels
Expected behavior
Each bar should be displayed separately, without overlapping other bars, even with a large amount of data.
The X-axis should correctly display labels, and the data should be visualized without distortion.
For very large datasets, the chart should either render correctly or provide a warning about exceeding limits, rather than failing silently.
Current behavior
With a moderate amount of data (e.g., a few hundred objects), bars overlap each other, making the chart unreadable.
With a large amount of data (e.g., several thousand objects), the chart stops rendering entirely. Instead, an empty space or a placeholder square is displayed, as if something went wrong.
Reproducible sample
https://codesandbox.io/p/sandbox/chartjs-issue-forked-77v3w2
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
^4.4.6
Browser name and version
Google Chrome 131.0.6778.265
Link to your project
No response
The text was updated successfully, but these errors were encountered: