Is it possible to register a chart.js plugin when using the 'v2' branch? How can it be done?
I am trying to add some labels to a doughnut chart (directly on the chart, like here) and using the afterDraw method of a plugin would seem the best option (like ). I tried to implement a componentDidUpdate method inspired by that code but it draws the labels first, then it clears them when the doughnut chart is actually drawn.
Is it possible to register a chart.js plugin when using the 'v2' branch? How can it be done? I am trying to add some labels to a doughnut chart (directly on the chart, like here) and using the afterDraw method of a plugin would seem the best option (like ). I tried to implement a componentDidUpdate method inspired by that code but it draws the labels first, then it clears them when the doughnut chart is actually drawn.