react-chartjs
react-chartjs copied to clipboard
DoughnutWithTextInside
Hi,
I have created the DoughnutWithTextInside this will set centered text within the doughnut. Right now it set a percentage, this is what i needed for my project.
Perhaps you would find this interesting into implementing something like this into your package. You can tak a look at https://github.com/lemonCMS/react-chartjs
Kind Regards, Raymond
Hey great branch! One of the issues I ran into when implementing the DoughnutWithTextInside was that the fontSize is calculated by a hard coded factor. It would be great if the fontSize could be exposed in the options object.
Hi @lemonCMS,
I need a Doughnut chart with text inside as well, but instead of creating an additional fork or pull request, do you think you can submit your changes as a pull request with the fontSize that @Malachi-M mentioned?
Hopefully then, the pull request can be approved afterwards :)
Hello @checkhavoc,
I have created a pull request with the added labelScale
option. It is available here.
I hope it helps!
Malachi
How to use this feature along with reactJS component. This is not listed in the readme file. Could you please lets us know how I can set dynamic text inside doughnut graph
1+