# Linked tap selections in stacked bar plots

**URL:** <https://discourse.holoviz.org/t/linked-tap-selections-in-stacked-bar-plots/956>\
**Category:** hvPlot\
**Created:** [July 10, 2020, 9:16am UTC](https://discourse.holoviz.org/t/linked-tap-selections-in-stacked-bar-plots/956 "2020-07-10T09:16:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattH](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/m/f475e1/32.png) [@MattH](https://discourse.holoviz.org/u/MattH)\
**Post date:** [July 10, 2020, 9:16am UTC](https://discourse.holoviz.org/t/linked-tap-selections-in-stacked-bar-plots/956/1 "2020-07-10T09:16:20Z")

</div>

I have two stacked .hvplot.bar graphs that contain the same x axis and stacked categories but show different y values. I would like to link them and be able to highlight a particular category in one graph for a particular x value by tapping on it and have the analogous one in the other graph also highlighted … where highlighting is fading out all the other bars and categories. Is this possible?

---

<div class="post-metadata">

**Author:** ![Marc](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/marc/32/24_2.png) [@Marc](https://discourse.holoviz.org/u/Marc)\
**Post date:** [July 10, 2020, 12:29pm UTC](https://discourse.holoviz.org/t/linked-tap-selections-in-stacked-bar-plots/956/2 "2020-07-10T12:29:13Z")

</div>

Yes.

I would look to the tap stream or [http://holoviews.org/reference/streams/bokeh/Tap.html](http://holoviews.org/reference/streams/bokeh/Tap.html) or Linked brushing [http://holoviews.org/user\_guide/Linked\_Brushing.html](http://holoviews.org/user_guide/Linked_Brushing.html)

But take a look at the Holoviews documentation. I think you will find some examples.

And feel to post some minimal code either working or partially working to get a discussion going.

---

<div class="post-metadata">

**Author:** ![MattH](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/m/f475e1/32.png) [@MattH](https://discourse.holoviz.org/u/MattH)\
**Post date:** [July 20, 2020, 12:09pm UTC](https://discourse.holoviz.org/t/linked-tap-selections-in-stacked-bar-plots/956/3 "2020-07-20T12:09:03Z")

</div>

Hi Marc,

I have created an example : [https://pastebin.com/1MyD0b8u](https://pastebin.com/1MyD0b8u)

Basically, data linking works if the bars are not stacked, but doesn’t work if they are.

regards  
Matt
