# Bar chart, selecting a specific bar - Perspective

**URL:** <https://forum.inductiveautomation.com/t/bar-chart-selecting-a-specific-bar-perspective/34399>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 4, 2020, 10:48am UTC](https://forum.inductiveautomation.com/t/bar-chart-selecting-a-specific-bar-perspective/34399 "2020-05-04T10:48:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toobor](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Toobor](https://forum.inductiveautomation.com/u/Toobor)\
**Post date:** [May 4, 2020, 10:48am UTC](https://forum.inductiveautomation.com/t/bar-chart-selecting-a-specific-bar-perspective/34399/1 "2020-05-04T10:48:21Z")

</div>

Hi,  
I have the same question as rigoberto.reyes in this discussion: [Bar chart, selecting a specific bar](http://forum.inductiveautomation.com/t/bar-chart-selecting-a-specific-bar/17891). But I am wondering how to do this with the bar chart in the perspective mode.  
I tried the same solution but got this error: `object has no attribute 'source'`.  
I figure that I switch `event.source` to `self`. I then got this error: `object has no attribute 'addChartMouseListener'`.  
Is there an other solution that works for the chart object in Perspective mode?

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [May 4, 2020, 12:19pm UTC](https://forum.inductiveautomation.com/t/bar-chart-selecting-a-specific-bar-perspective/34399/2 "2020-05-04T12:19:16Z")

</div>

It seems like that forum post that you referenced is in regards to Vision.

Currently in Perspective to select something like that normally you would look for an “onInstanceClicked” event, but unfortunately as of the 8.0.12 instance I am looking at there isnt one yet.

However, the ability to deduce the bar clicked WOULD be fantastic, because there is alot of information you could provide after clicking the bar.

I actually have an old Ideas post for this here: [https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/xy-chart-and-pie-chart-onactionperformed](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/xy-chart-and-pie-chart-onactionperformed)

---

<div class="post-metadata">

**Author:** ![Toobor](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@Toobor](https://forum.inductiveautomation.com/u/Toobor)\
**Post date:** [May 4, 2020, 12:39pm UTC](https://forum.inductiveautomation.com/t/bar-chart-selecting-a-specific-bar-perspective/34399/3 "2020-05-04T12:39:06Z")

</div>

Thank you for your reply! I will upvote your idea post and hopes that this will be implemented.
