Skip to content

Chart API methods #8370

Answered by etimberg
DuncanTLaw asked this question in Q&A
Discussion options

You must be logged in to vote

clear

Erases the canvas. I don't think there'd be a need to use this externally, but it's been exposed since v2.0.0 so we documented it

destroy

Needs to be called when a chart is to be removed. If not, and the canvas is reused, errors will be thrown

reset

If you want to re-run the initial chart animations, this will reset to the initial state. I don't think most users call this, but it is exposed for legacy reasons like clear

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DuncanTLaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants