!!!###!!!title=38-How does the label at the center of the ring chart adapt to the size of the ring——VisActor/VChart FAQ documents!!!###!!!

How does the label at the center of the ring chart adapt to the size of the ring?

Question Description

How does VChart configure the adaptive size of the center label in a ring chart? As shown in the following figure, I want to keep the text inside the ring:

Solution

You can refer to the following demo to configure autoFit: true in the indicator component.

Code Example

Result

Quote

github:https://github.com/VisActor/VChart

Demo page: https://www.visactor.io/vchart/demo/pie-chart/pie-indicator