# XY Chart format integer on render value not working

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-format-integer-on-render-value-not-working/112300>\
**Category:** Ignition\
**Tags:** ignition83, perspective\
**Created:** [November 20, 2025, 8:19am UTC](https://forum.inductiveautomation.com/t/xy-chart-format-integer-on-render-value-not-working/112300 "2025-11-20T08:19:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [November 20, 2025, 8:19am UTC](https://forum.inductiveautomation.com/t/xy-chart-format-integer-on-render-value-not-working/112300/1 "2025-11-20T08:19:06Z")

</div>

I'm trying to set my x axis as integer. The numbers in the dataSource are integers. If I change the format to integer it won't display an integer on the axis.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/4/946eb0ddabc6fe3472be3365bd2877b61f7d46b8.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/8/b871c790dd71ff117e9fe00e842f0213969bbca4.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 20, 2025, 4:26pm UTC](https://forum.inductiveautomation.com/t/xy-chart-format-integer-on-render-value-not-working/112300/2 "2025-11-20T16:26:04Z")

</div>

What’s the actual range of the data here? From the emitted labels, it appears your data would all fall between 0.8 and 1.4. I suppose I could see a use case for an x axis which started at 0 and went to 2, with the only label between them a 1. Is that what you’re going for?

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [November 21, 2025, 7:54am UTC](https://forum.inductiveautomation.com/t/xy-chart-format-integer-on-render-value-not-working/112300/3 "2025-11-21T07:54:04Z")

</div>

The data range can vary from 0 to any upper value. Sometimes it spans 0-1, other times 0-100, and in some cases 0-10000. The input values are always integers. However, the axis displays decimals depending on the range. It should always display integers, since the values represent the number of times each event occurs.

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

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

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

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 21, 2025, 5:03pm UTC](https://forum.inductiveautomation.com/t/xy-chart-format-integer-on-render-value-not-working/112300/4 "2025-11-21T17:03:20Z")

</div>

Ah, those are commas - not dots; the original screenshot didn’t make that clear. I wonder if the session locale is somehow causing issues with the formatting. I wouldn’t expect so but it’s been so long since I’ve been in this product area that I can’t say for certain. I’ll ask around.

---

<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:** [November 21, 2025, 5:23pm UTC](https://forum.inductiveautomation.com/t/xy-chart-format-integer-on-render-value-not-working/112300/5 "2025-11-21T17:23:35Z")

</div>

Test it with `xAxes.1.value.format : ###0` or blank. That should show you whether the problem is with the format string or not.

I'd always put a 0 before the decimal point so that it forces the zero display if the value is zero. Maybe it does anyway, but I've never noticed because I always ...
