Skip to content

How to draw the item before the datasetsDraw on an event? #11142

Answered by stockiNail
Udemology asked this question in Q&A
Discussion options

You must be logged in to vote

@Udemology in my opinion, the shape should be drawn in beforeDatasetsDraw. All data you need to draw should be created and managed in afterEvent. To force a draw from afterEvent you should set args.changed property to true before return. Setting that property chart.js redraws the chart.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@stockiNail
Comment options

@stockiNail
Comment options

@stockiNail
Comment options

@Udemology
Comment options

Answer selected by Udemology
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