# How to change piechart labelFormat in perspective view

**URL:** <https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 20, 2023, 7:52am UTC](https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629 "2023-07-20T07:52:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romain\_PICHARD](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Romain\_PICHARD](https://forum.inductiveautomation.com/u/Romain_PICHARD)\
**Post date:** [July 20, 2023, 7:52am UTC](https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629/1 "2023-07-20T07:52:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Martin\_Wijaya](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Martin\_Wijaya](https://forum.inductiveautomation.com/u/Martin_Wijaya)\
**Post date:** [October 1, 2024, 12:07am UTC](https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629/2 "2024-10-01T00:07:22Z")

</div>

anyone know how to change the label format ?  
is it possible ?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [October 1, 2024, 6:26am UTC](https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629/3 "2024-10-01T06:26:25Z")

</div>

Hello!,

In the props.labels you have multiple choices to change the labels of pie charts.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/6/46bf7aa11a8cb4a662805f9bc0c571613fa66953.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/7/073606370659ee46ba9357947e330591ea84c8cf.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 1, 2024, 10:20am UTC](https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629/4 "2024-10-01T10:20:19Z")

</div>

The Pie Chart component is based on AMCharts pie chart. You can find their documentation at [Pie series – amCharts 5 Documentation](https://www.amcharts.com/docs/v5/charts/percent-charts/pie-chart/pie-series/).

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.

---

<div class="post-metadata">

**Author:** ![Martin\_Wijaya](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Martin\_Wijaya](https://forum.inductiveautomation.com/u/Martin_Wijaya)\
**Post date:** [October 3, 2024, 11:43am UTC](https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629/5 "2024-10-03T11:43:12Z")

</div>

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}

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 3, 2024, 11:46am UTC](https://forum.inductiveautomation.com/t/how-to-change-piechart-labelformat-in-perspective-view/76629/6 "2024-10-03T11:46:32Z")

</div>

See my suggested use of a table in response to [Pie Chart: show both percent and value - #2 by Transistor](https://forum.inductiveautomation.com/t/pie-chart-show-both-percent-and-value/96749/2).
