ankane / react-chartkick

Create beautiful JavaScript charts with one line of React
https://chartkick.com/react
MIT License
1.2k stars 58 forks source link

Labeling Pie/Donut pieces and accessing chart.js config #37

Closed atelic closed 5 years ago

atelic commented 5 years ago

Hi,

I'm trying to add labels to pieces of a pie or donut chart similar to what's acheived here. It doesn't seem like that is supported through react-chartkick. Is there any way to access the chart.js config object in order to do this manually?

Thanks

ankane commented 5 years ago

Hey @atelic, you should be able register the plugin with Chart.js and then use the library option to pass additional options. Please use Stack Overflow if you need additional help.