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

DoughnutWithTextInside

Open lemonCMS opened this issue 9 years ago • 5 comments

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

lemonCMS avatar Feb 03 '16 23:02 lemonCMS

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.

Malachi-M avatar Feb 09 '16 22:02 Malachi-M

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 :)

checkhavoc avatar Mar 17 '16 19:03 checkhavoc

Hello @checkhavoc, I have created a pull request with the added labelScale option. It is available here. I hope it helps! Malachi

Malachi-M avatar Mar 24 '16 17:03 Malachi-M

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

sunnybogawat avatar Apr 22 '16 05:04 sunnybogawat

1+

zenonn37 avatar Apr 24 '16 21:04 zenonn37