reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

Registering a Plug-in #127

Open Zigur opened 8 years ago

Zigur commented 8 years ago

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.