# Perspective XY Chart - Get Selected Range

**URL:** <https://forum.inductiveautomation.com/t/perspective-xy-chart-get-selected-range/64870>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [October 5, 2022, 10:04pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-get-selected-range/64870 "2022-10-05T22:04:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aspatchek2013](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/aspatchek2013/32/85339_2.png) [@aspatchek2013](https://forum.inductiveautomation.com/u/aspatchek2013)\
**Post date:** [October 5, 2022, 10:04pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-get-selected-range/64870/1 "2022-10-05T22:04:49Z")

</div>

I am using an XY chart as a Gantt chart. I am implementing it using a horizontal scroll bar. Are there any properties or methods to know what range the horizontal scroll bar is currently selecting?

 ![xyChart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/2/a26d5e2dd07fdf79d900aee9e81b1eead6795ebd.png)

---

<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:** [October 9, 2022, 6:08am UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-get-selected-range/64870/2 "2022-10-09T06:08:47Z")

</div>

Since this had gone a few days without an answer, I created an XYChart to see what I could figure out on it. By manipulating the xAxes[0].date.format, I can get the tooltip to display the zoomed range, but I haven't been able to pull that information out to a usable location. For example: `self.parent.getChild("XYChart").requestTooltip()` returns `None`. What we're really looking for here is the **zoomed range**. Does anybody else have any ideas on how to access this data?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/0/204a25231d185b3ccaf9aebe22c49d98e417ef7b.png)

---

<div class="post-metadata">

**Author:** ![Angelica\_Aguilar](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Angelica\_Aguilar](https://forum.inductiveautomation.com/u/Angelica_Aguilar)\
**Post date:** [April 19, 2024, 10:12pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-get-selected-range/64870/3 "2024-04-19T22:12:48Z")

</div>

Hey there ! I'm currently working in a requirement like this, I know its been a while since the post but I just don't get how you configured the tooltip to show the zoomed range, hope you can help me ! Thanks in advance

---

<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:** [April 19, 2024, 11:59pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-get-selected-range/64870/4 "2024-04-19T23:59:26Z")

</div>

> [@Angelica\_Aguilar](#):
>
> I just don't get how you configured the tooltip to show the zoomed range

It's been a while since I looked at this problem, but if I recall correctly, the tool tip didn't require any configuration to display the zoomed range; it just did. As I recall, I was trying get the zoomed range for uses elsewhere in the project, and I observed that the tool tip contained what I was looking for, but I simply didn't know how to extract the data from the tool tip.
