# \[FEATURE - 6222\] XY Chart Selection

**URL:** <https://forum.inductiveautomation.com/t/feature-6222-xy-chart-selection/70416>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [February 28, 2023, 12:31pm UTC](https://forum.inductiveautomation.com/t/feature-6222-xy-chart-selection/70416 "2023-02-28T12:31:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inken\_Kestler](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@Inken\_Kestler](https://forum.inductiveautomation.com/u/Inken_Kestler)\
**Post date:** [February 28, 2023, 12:31pm UTC](https://forum.inductiveautomation.com/t/feature-6222-xy-chart-selection/70416/1 "2023-02-28T12:31:11Z")

</div>

Hi together,

I have in Perspective a XY chart and try to use the selection to filter another chart. If I select one bar in the first char everything is alright.  
My problem is, that I have several series in my first chart, so the user is able to select one bar of each series. For the filter of the second chart I use the firstchart.selection.data[0] array. So it still works if several series are selected, but I think it's not very userfriendly.

For example:  
EA2\_1 has the series: R3,R4,R5 and R6  
EA2\_3 has the series: R7, R8 and R9  
So the user is able to select all 7 bars. (In the picture R3,R4 and R9 are selected)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/9/d9caa72e4f1540b65e04151b09f46555913f48ed.png)

In firstchart.selection.data[0] you can find the first clicked series.

My goal is, that the user is only able to select 1 of these 7 bar.  
Or what would be also ok, that he is only able to select bars out of one category EA2\_1 or EA2\_3

If you know any other smart way, to select the category by clicking at the data I would be happy.

Thank you in advance  
Inken

---

<div class="post-metadata">

**Author:** ![Emma\_Ngo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/emma_ngo/32/44559_2.png) [@Emma\_Ngo](https://forum.inductiveautomation.com/u/Emma_Ngo)\
**Post date:** [March 8, 2023, 7:12pm UTC](https://forum.inductiveautomation.com/t/feature-6222-xy-chart-selection/70416/2 "2023-03-08T19:12:43Z")

</div>

Hi [Inken\_Kestler](https://forum.inductiveautomation.com/u/Inken_Kestler),  
Unfortunately, there is no option to limit selection in Perspective XY Chart to one data series. There is a feature request has been created.

---

<div class="post-metadata">

**Author:** ![Inken\_Kestler](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@Inken\_Kestler](https://forum.inductiveautomation.com/u/Inken_Kestler)\
**Post date:** [March 9, 2023, 7:36am UTC](https://forum.inductiveautomation.com/t/feature-6222-xy-chart-selection/70416/3 "2023-03-09T07:36:50Z")

</div>

Thanks 😀
