# Repeated X Axis Values,

**URL:** <https://forum.inductiveautomation.com/t/repeated-x-axis-values/100296>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 30, 2024, 6:35am UTC](https://forum.inductiveautomation.com/t/repeated-x-axis-values/100296 "2024-12-30T06:35:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse\_Dale\_Gimenez](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jesse_dale_gimenez/32/68763_2.png) [@Jesse\_Dale\_Gimenez](https://forum.inductiveautomation.com/u/Jesse_Dale_Gimenez)\
**Post date:** [December 30, 2024, 6:35am UTC](https://forum.inductiveautomation.com/t/repeated-x-axis-values/100296/1 "2024-12-30T06:35:39Z")

</div>

Hi Ignition Team,

I am having problem where the x axis values in my xy chart is repeating.  
Please see attached images for the actual chart and the datasource.

 ![NOV SPAM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/e/fe0bd4a8fc0856eaecf43473decc3eb143b9771a.jpeg)

[you can see from the image that Nov X axis values is repeating where as my data source only has Nov and Dec for the month. Nov and Dec are in current millins ([https://currentmillis.com/](https://currentmillis.com/))

1,732,982,400,000  
Sun Dec 01 2024 00:00:00.000

1,730,390,400,000  
Fri Nov 01 2024 00:00:00.000

---

<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:** [December 30, 2024, 4:17pm UTC](https://forum.inductiveautomation.com/t/repeated-x-axis-values/100296/2 "2024-12-30T16:17:42Z")

</div>

You probably need to work with `xAxes.0.appearance.grid.minDistance` to get the effect you want. Have a read of Nick Minchin's reply on this topic. (It's about the y-axis grid so you'll need to convert to x-axis.)

> [@Perspecrive XY CHART Question](https://forum.inductiveautomation.com/t/perspecrive-xy-chart-question/72550/6):
>
> Setting it to 0.5 isn't going to produce 5 gridlines, even if there weren't smarts to work out how many will actually fit on the graph; you would get 100s of 1000s of gridlines (600k) If you want 5 gridlines dynamically, then you will need to: set the min/max y range statically (props.yAxes[x].value.range.min/max and set useStrict to true) set props.yAxes[x].appearance.grid.minDistance = expression binding: ({this.props.yAxes[x].value.range.max}-{this.props.yAxes[x].value.range.min})/5 whe…
