# XY chart x-axis scale incorrectly in Gantt mode

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-x-axis-scale-incorrectly-in-gantt-mode/44858>\
**Category:** Ignition Early Access\
**Created:** [March 24, 2021, 3:12pm UTC](https://forum.inductiveautomation.com/t/xy-chart-x-axis-scale-incorrectly-in-gantt-mode/44858 "2021-03-24T15:12:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [March 24, 2021, 3:12pm UTC](https://forum.inductiveautomation.com/t/xy-chart-x-axis-scale-incorrectly-in-gantt-mode/44858/1 "2021-03-24T15:12:42Z")

</div>

It seems to me that the XY chart has a bug in Gantt mode.  
If the end time range is between tick, it fills the gap or leaves it empty.

 ![gantt x-axis scale bug](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/f/df6efc74ee31235fa07ce22761eda52a5735e035.png)

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [March 24, 2021, 5:44pm UTC](https://forum.inductiveautomation.com/t/xy-chart-x-axis-scale-incorrectly-in-gantt-mode/44858/2 "2021-03-24T17:44:28Z")

</div>

Here’s what I had to do in order to make everything work:

1. _ **xAxes.0.date.range.max** _ and _ **xAxes.0.date.range.min** _ must be set, and they must use dates converted into milliseconds. If you use normal dates it doesn’t seem to work.
2. You must have a record that exists outside of the min and max date ranges. In order to ensure this, I add a record that has _ **fromDate = 0** _ and _ **toDate = 1** _ for every person.

Here’s a view that should demonstrate this.  
[Gantt Chart\_2021-03-24\_1123.zip](https://forum.inductiveautomation.com/uploads/short-url/t9a8TElSqbGdzO7ANzpDiobP5KS.zip) (12.7 KB)
