# Time Series Chart - forcing the X-axis range and grid offset

**URL:** <https://forum.inductiveautomation.com/t/time-series-chart-forcing-the-x-axis-range-and-grid-offset/78903>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 8, 2023, 10:47am UTC](https://forum.inductiveautomation.com/t/time-series-chart-forcing-the-x-axis-range-and-grid-offset/78903 "2023-09-08T10:47:47Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [September 8, 2023, 10:47am UTC](https://forum.inductiveautomation.com/t/time-series-chart-forcing-the-x-axis-range-and-grid-offset/78903/1 "2023-09-08T10:47:47Z")

</div>

I've a couple of problems:

 ![Time series x-axis limits](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/6/a6b311d752e95217b1233f8fc88c53a7490b8215.png)

By default the Time Series Chart uses the first and last values of the first column of data as the range for the x-axis. I want to display a full 24 hours starting on a particular hour (typically midnight or 8 a.m.).

1. How can I specify the x-axis range? (I've fooled it by adding `force24HourXAxis` series with two points (startTime, 0) and (endTime, 0) but this is now showing up as "Timestamp" on the x-trace and I don't want that.)
2. The gridlines are offset by half an hour. The XY Chart has an offsest function to fix this. Is there one for the Time Series Chart?

---

<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:** [September 8, 2023, 8:46pm UTC](https://forum.inductiveautomation.com/t/time-series-chart-forcing-the-x-axis-range-and-grid-offset/78903/2 "2023-09-08T20:46:30Z")

</div>

Mine are all like that too.  
Maybe some are worse since I used discrete steps for some graphs.  
8.1.19 is the version I am using.

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

Either way though, it is offset.

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