# Pull Easychart y axis bound data to moving analog indicator range

**URL:** <https://forum.inductiveautomation.com/t/pull-easychart-y-axis-bound-data-to-moving-analog-indicator-range/70293>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 24, 2023, 4:00pm UTC](https://forum.inductiveautomation.com/t/pull-easychart-y-axis-bound-data-to-moving-analog-indicator-range/70293 "2023-02-24T16:00:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Cockrell](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Brian\_Cockrell](https://forum.inductiveautomation.com/u/Brian_Cockrell)\
**Post date:** [February 24, 2023, 4:00pm UTC](https://forum.inductiveautomation.com/t/pull-easychart-y-axis-bound-data-to-moving-analog-indicator-range/70293/1 "2023-02-24T16:00:25Z")

</div>

I have created an easychart which gets information from another tag on another screen by passing easychart dataset.

I have then created an analog indicator that shows up on the trend that shows alarms and lets them be changable.

My issue is that when the easychart is zoomed in i cannot get the analog indicator range to change based on the easychart upper and lower bound.

I know this can be done easily the other way around but cant seem to find the information for this direction.

I am new to java and am not sure how get the upper and lower bound information to use elsewhere.

Any help would be appreciated.

 ![20230224_095827](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/a/7a4bde18e833124e835b69565666a6371d02d848.jpeg)  
 ![20230224_095820](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/d/0dd711ec79e98844ffc648351b7acfd56eda536e.jpeg)

---

<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:** [February 24, 2023, 11:18pm UTC](https://forum.inductiveautomation.com/t/pull-easychart-y-axis-bound-data-to-moving-analog-indicator-range/70293/2 "2023-02-24T23:18:48Z")

</div>

Here's a way to get all four bounds from an easy chart when in zoom or pan mode:

> [@How to get the X and Y axis value during in Zoom/Pan mode of Easy Chart](https://forum.inductiveautomation.com/t/how-to-get-the-x-and-y-axis-value-during-in-zoom-pan-mode-of-easy-chart/65693/5):
>
> @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: 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…

---

<div class="post-metadata">

**Author:** ![Brian\_Cockrell](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Brian\_Cockrell](https://forum.inductiveautomation.com/u/Brian_Cockrell)\
**Post date:** [March 8, 2023, 10:07pm UTC](https://forum.inductiveautomation.com/t/pull-easychart-y-axis-bound-data-to-moving-analog-indicator-range/70293/3 "2023-03-08T22:07:54Z")

</div>

Awesome. Thank you so much
