# XYChart Axis Markers only showing 2 decimal places

**URL:** <https://forum.inductiveautomation.com/t/xychart-axis-markers-only-showing-2-decimal-places/87492>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 18, 2024, 2:57pm UTC](https://forum.inductiveautomation.com/t/xychart-axis-markers-only-showing-2-decimal-places/87492 "2024-03-18T14:57:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Karee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew_karee/32/63956_2.png) [@Matthew\_Karee](https://forum.inductiveautomation.com/u/Matthew_Karee)\
**Post date:** [March 18, 2024, 2:57pm UTC](https://forum.inductiveautomation.com/t/xychart-axis-markers-only-showing-2-decimal-places/87492/1 "2024-03-18T14:57:05Z")

</div>

I'm using an XYChart to plot a Dataset tag in Ignition Perspective. The Y axis labels are only showing 2 decimal places and a trailing zero. Any idea how to fix this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/1/913c2cdb37585364f6ed37241e91d8b912c43558.png)

---

<div class="post-metadata">

**Author:** ![Matthew\_Karee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew_karee/32/63956_2.png) [@Matthew\_Karee](https://forum.inductiveautomation.com/u/Matthew_Karee)\
**Post date:** [March 18, 2024, 3:00pm UTC](https://forum.inductiveautomation.com/t/xychart-axis-markers-only-showing-2-decimal-places/87492/2 "2024-03-18T15:00:42Z")

</div>

To describe what's happening a little more clearly, the y axis tick labels are being rounded to the nearest 0.01.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/1/e1706ec6cb501f86462f5da70507cddefe5f44f1.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/c/6c2d0dd95ba2851b3bb8e06583ec4fceca729669.png)

---

<div class="post-metadata">

**Author:** ![Alex\_DeBate](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alex_debate/32/56483_2.png) [@Alex\_DeBate](https://forum.inductiveautomation.com/u/Alex_DeBate)\
**Post date:** [March 18, 2024, 3:15pm UTC](https://forum.inductiveautomation.com/t/xychart-axis-markers-only-showing-2-decimal-places/87492/3 "2024-03-18T15:15:03Z")

</div>

What is the formatting under `properties.yAxes.value` set to? You may need to add an additional point of precision.

---

<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:** [March 18, 2024, 3:21pm UTC](https://forum.inductiveautomation.com/t/xychart-axis-markers-only-showing-2-decimal-places/87492/4 "2024-03-18T15:21:19Z")

</div>

Hmmm, there's something not right there.  
If I drop in the default XY Chart component, delete the second yAxis and series and change set `yAxes.0.value.format : #,###.000 mm` I get '20mm', etc., without the space.  
Making it `#,###.000 %` results in '2,000.000%'.

See if the AM Charts (on which the component is based) documentation has any clues. See the bottom of [Value Axis – amCharts 4 Documentation](https://www.amcharts.com/docs/v4/concepts/axes/value-axis/#Formatting_labels) and the bit that says,

> This is why `ValueAxis` will try to automatically format all numbers using the same number of decimals as the most granular label currently displayed, e.g.: `1.0` , `1.5` , `2.0` .

* * *

There's a dropdown beside `yAxes.0.value.format :`. Choosing the 'a' for 'abbreviation' suffix fixes the problem for numbers in the range 0 to 100.
