# XYChart X Date Base Interval Issue

**URL:** <https://forum.inductiveautomation.com/t/xychart-x-date-base-interval-issue/59922>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [May 23, 2022, 6:23pm UTC](https://forum.inductiveautomation.com/t/xychart-x-date-base-interval-issue/59922 "2022-05-23T18:23:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![duffserf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffserf/32/19720_2.png) [@duffserf](https://forum.inductiveautomation.com/u/duffserf)\
**Post date:** [May 23, 2022, 6:23pm UTC](https://forum.inductiveautomation.com/t/xychart-x-date-base-interval-issue/59922/1 "2022-05-23T18:23:20Z")

</div>

Hello Everyone

I have this issue on Ignition 8.1.16  
When I try to graph one line over stacked bars x-axis does not correspond to the expected value. I try using based interval but I show another day in labels.

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

my data:

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

I did not have this issue on 8.1.13

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

Any Suggestion?

[XYChart.txt](https://forum.inductiveautomation.com/uploads/short-url/odTYU0bNEj0Ec53DHNPrhdQercP.txt) (60.9 KB)

---

<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:** [May 23, 2022, 7:02pm UTC](https://forum.inductiveautomation.com/t/xychart-x-date-base-interval-issue/59922/2 "2022-05-23T19:02:19Z")

</div>

> [@duffserf](#):
>
> Any Suggestion?

Yes. Post the code for the chart using the `</>` formatting button. That way we can recreate the problem. It's usually not much use posting pictures of data as we can't copy and paste to try it out or modify it in our answers.  
Remove the binding from the chart data temporarily, right-click on the chart in the Project Browser and copy into the forum. If you want to be really neat select all the code, hit the gear icon and select _Hide Details_.

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [May 23, 2022, 7:27pm UTC](https://forum.inductiveautomation.com/t/xychart-x-date-base-interval-issue/59922/3 "2022-05-23T19:27:13Z")

</div>

8.1.0

I recently had a similar issue  
I set for category on the x axis, in this case your t\_stamp

I set:  
40 minDistance grid spacing  
12 font, 0.5 positioning

Not sure what you will have to do, but I think this may help. As I couldn’t get base interval to work either.

---

<div class="post-metadata">

**Author:** ![duffserf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffserf/32/19720_2.png) [@duffserf](https://forum.inductiveautomation.com/u/duffserf)\
**Post date:** [May 24, 2022, 5:02pm UTC](https://forum.inductiveautomation.com/t/xychart-x-date-base-interval-issue/59922/4 "2022-05-24T17:02:48Z")

</div>

thanks for your recommendation, I uploaded a text file because due to the number of characters I couldn’t publish the code with \</\>
