Skip to content

Improve error message with id of the canvas#10495

Merged
etimberg merged 2 commits into
chartjs:masterfrom
LeeLenaleee:improve-error-canvas-in-use
Jul 20, 2022
Merged

Improve error message with id of the canvas#10495
etimberg merged 2 commits into
chartjs:masterfrom
LeeLenaleee:improve-error-canvas-in-use

Conversation

@LeeLenaleee

@LeeLenaleee LeeLenaleee commented Jul 20, 2022

Copy link
Copy Markdown
Collaborator

Noticed on some stack issues people tried to call Chart.getChart('0').destroy() but that does not work since it does not return the chart instance. So added the canvas ID to hopefully make it so people don't get that error anymore.

https://codepen.io/leelenaleee/pen/oNEPGbP

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants