kyndryl-design-system / shidoka-charts

Shidoka charts based on Chart.js
https://shidoka-charts.netlify.app
MIT License
1 stars 0 forks source link

[Doughnut] Request for control over the text in the center #7

Closed bikashp2023 closed 6 months ago

bikashp2023 commented 11 months ago

Is your feature request related to a problem? Please describe. I need to show a different center text in a doughnut chart instead of the out of the box message shidoka gives.

image

Describe the solution you'd like If the out of the box plugin can be made optional then center space gives me a clean slate for my plugin to write any text over there. I am referring to this out of the box plugin for center text that shidoka uses: https://github.com/kyndryl-design-system/shidoka-charts/blob/main/src/common/plugins/doughnutLabel.js#L6

cunningham-kyndryl commented 10 months ago

@bikashp2023 can you explain the use case for needing to overwrite the center content?

bikashp2023 commented 10 months ago

@cunningham-kyndryl I need to present numbers with commas to enhance readability, both in the peripheral and at the center. I am not able to do it in the center as, for shidoka donut charts center text is not optional for me to have a clean slate to write my own text.

As demonstrated below, the center text needs to have commas in the number.

image