Hello,
I want to change the format of label in pie chart component in a perspective view ? I managed to modify the tooltip as i need by using tooltipFormat parameter but I don't find the equivalent for label.
My final need is just to add the unit of the value.
Thank you for your help,
Romain
anyone know how to change the label format ?
is it possible ?
Hello!,
In the props.labels you have multiple choices to change the labels of pie charts.
The Pie Chart component is based on AMCharts pie chart. You can find their documentation at Pie series – amCharts 5 Documentation.
Part way down the page you'll find,
Label content
Slice labels are pre-set to display name of the category and its percent value.
We can modify contents of the tooltips using text
setting on a series label template:
That suggests to me that they're not exposing a method of custom formatting.
It is possible to add a suffix with CSS but I couldn't see an appropriate identifier n the pie chart's SVG XML.
Then i think it's not possible to change the format for now.
as I want to have template with {category} {value.value} {value.percent}