Closed ayoubkhan558 closed 1 year ago
Hi @ayoubkhan558 👋
Please take a look at this code sandbox with a donut chart example.
Hi @ayoubkhan558
Please take a look at this code sandbox with a donut chart example.
Yes its good. How we can add a text in center?
I don't think there's a built it option for that but you could use an :after
pseudo-element to display text over the chart. I've put together a small example to demonstrate: https://codesandbox.io/s/elegant-tesla-cygizr?file=/style.css
How to create a chart like this and define its colors.![image](https://user-images.githubusercontent.com/99708427/178939628-ef219b1e-60d3-44d0-891d-bd93714fdc13.png)