# Perspective XY Chart Force Y-axis Grid Interval

**URL:** <https://forum.inductiveautomation.com/t/perspective-xy-chart-force-y-axis-grid-interval/26763>\
**Category:** Ignition\
**Created:** [July 22, 2019, 5:24pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-force-y-axis-grid-interval/26763 "2019-07-22T17:24:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joyja](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joyja/32/9401_2.png) [@joyja](https://forum.inductiveautomation.com/u/joyja)\
**Post date:** [July 22, 2019, 5:24pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-force-y-axis-grid-interval/26763/1 "2019-07-22T17:24:29Z")

</div>

Forgive me if I’m missing it, but is there a way to manually force the Y-axis grid to a specfic interval? For example, in this trend I’d like the y-axis grid to show increments of 1 (rather than 5):

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

---

<div class="post-metadata">

**Author:** ![ynejati](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ynejati/32/6093_2.png) [@ynejati](https://forum.inductiveautomation.com/u/ynejati)\
**Post date:** [July 22, 2019, 7:20pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-force-y-axis-grid-interval/26763/2 "2019-07-22T19:20:37Z")

</div>

Hi,

There’s no interval configuration on the y axis currently, but you can achieve a similar effect by adjusting the minimum amount of pixels between two grid lines along the y axis. This property is located at yAxes[index].appearance.grid.minDistance. As the height of the chart grows and shrinks the chart will intelligently calculate the distance between grid lines and adjust accordingly, but we can trick it by setting the value to something small, like 1. Hope that helps.

-Y

---

<div class="post-metadata">

**Author:** ![joyja](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joyja/32/9401_2.png) [@joyja](https://forum.inductiveautomation.com/u/joyja)\
**Post date:** [July 22, 2019, 7:39pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-force-y-axis-grid-interval/26763/3 "2019-07-22T19:39:13Z")

</div>

Hi @ynejati, This is exactly what I needed:

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

1 was too small (had some grid lines overlapping), but 5 gave me what I was looking for for all my charts.

Thanks!
