XYChart Axis Markers only showing 2 decimal places

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?

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


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

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 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.

2 Likes