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
When passing an array of labels I do not expect Chart.js to modify that array, but instead use a copy of it.
Values in the array are different after Chart.js was run.
https://jsfiddle.net/tsrabmgo/
See difference with and without the array_var line commented/uncommented.
Call .slice() on the value received as labels array.
No response
latest
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected behavior
When passing an array of labels I do not expect Chart.js to modify that array, but instead use a copy of it.
Current behavior
Values in the array are different after Chart.js was run.
Reproducible sample
https://jsfiddle.net/tsrabmgo/
Optional extra steps/info to reproduce
See difference with and without the array_var line commented/uncommented.
Possible solution
Call .slice() on the value received as labels array.
Context
No response
chart.js version
latest
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: