react-chartjs icon indicating copy to clipboard operation
react-chartjs copied to clipboard

Registering a Plug-in

Open Zigur opened this issue 9 years ago • 0 comments

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.

Zigur avatar Jul 06 '16 15:07 Zigur