# How to get the X and Y axis value during in Zoom/Pan mode of Easy Chart

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-the-x-and-y-axis-value-during-in-zoom-pan-mode-of-easy-chart/65693>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [October 26, 2022, 6:35am UTC](https://forum.inductiveautomation.com/t/how-to-get-the-x-and-y-axis-value-during-in-zoom-pan-mode-of-easy-chart/65693 "2022-10-26T06:35:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 10, 2022, 3:01am UTC](https://forum.inductiveautomation.com/t/how-to-get-the-x-and-y-axis-value-during-in-zoom-pan-mode-of-easy-chart/65693/5 "2022-11-10T03:01:13Z")

</div>

@June_Zhu - I finally figured this out. I was able to get all four parameter values in an easy chart from a test button using the following script:

```auto
chart = event.source.parent.getComponent('Easy Chart')
leftDomainX = chart.getZoomedStartDate()
rightDomainX = chart.getZoomedEndDate()
lowerRangeY = chart.getComponent(0).getComponent(0).chart.getPlot().getRangeAxis().getLowerBound()
upperRangeY = chart.getComponent(0).getComponent(0).chart.getPlot().getRangeAxis().getUpperBound()
print "Current Y-Axis visible range = " + str(lowerRangeY) + " - " + str(upperRangeY)
print "Current X-Axis visible range = " + str(leftDomainX) + " - " + str(rightDomainX)

```

**Output prior to zoom:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/7/57a6c42bcd04a9f116e7dc63f03b4fc9bcd3578b.png)

```auto
Current Y-Axis visible range = -0.1 - 200.0
Current X-Axis visible range = Tue Nov 08 20:00:00 CST 2022 - Wed Nov 09 20:59:59 CST 2022

```

**Output after zoom:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/6/56ab987a812781b1e5cad6d87a8231b920887b8d.png)

```auto
Current Y-Axis visible range = 53.600332834 - 108.341278965
Current X-Axis visible range = Tue Nov 08 20:39:49 CST 2022 - Wed Nov 09 02:24:57 CST 2022

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-get-the-x-and-y-axis-value-during-in-zoom-pan-mode-of-easy-chart/65693)._
