Updating an elements draw
method in v3
#9913
Answered
by
mattgreenfield
mattgreenfield
asked this question in
Q&A
-
This example uses Chart.elements.Arc.prototype.draw = function() {` to overide the default and draw its own bars with a space between them However it is using chartJS v2. I can't seem to find how I would do this with v3. Any help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
mattgreenfield
Dec 22, 2021
Replies: 1 comment
-
I've found the answer. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mattgreenfield
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've found the answer.
To override a charts Draw method, you must extend the chart class like this https://www.chartjs.org/docs/latest/developers/charts.html#extending-existing-chart-types