# How to Open a Specific Page by Clicking a Bar in an XY Chart?

**URL:** <https://forum.inductiveautomation.com/t/how-to-open-a-specific-page-by-clicking-a-bar-in-an-xy-chart/102801>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 24, 2025, 5:20pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-specific-page-by-clicking-a-bar-in-an-xy-chart/102801 "2025-02-24T17:20:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Silva](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bruno\_Silva](https://forum.inductiveautomation.com/u/Bruno_Silva)\
**Post date:** [February 24, 2025, 5:20pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-specific-page-by-clicking-a-bar-in-an-xy-chart/102801/1 "2025-02-24T17:20:35Z")

</div>

Hi all,

I am creating a bar chart using the XY Chart (Ignition Perspective) component and retrieving data through database queries. I would like to implement functionality where clicking on a specific bar opens a different page, with each bar leading to a unique page containing detailed information related to that data point. Is there a way to achieve this in Ignition? If so, what is the best approach to implement it?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/6689ac1dee13ba3618ea7be8afe1bfe9e3b322b1.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [February 24, 2025, 6:03pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-specific-page-by-clicking-a-bar-in-an-xy-chart/102801/2 "2025-02-24T18:03:55Z")

</div>

You could enable the "selection" property and create an onDoubleClick event using its data:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/1/5133e05db386c9b00ac478898654251a3227a782.png)

---

<div class="post-metadata">

**Author:** ![Bruno\_Silva](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bruno\_Silva](https://forum.inductiveautomation.com/u/Bruno_Silva)\
**Post date:** [February 27, 2025, 12:53pm UTC](https://forum.inductiveautomation.com/t/how-to-open-a-specific-page-by-clicking-a-bar-in-an-xy-chart/102801/4 "2025-02-27T12:53:52Z")

</div>

Hello Ryan, thank you for your support.
