# Using plotly graphs as filters in Shiny

**URL:** <https://community.plotly.com/t/using-plotly-graphs-as-filters-in-shiny/4063>\
**Category:** Plotly R\
**Created:** [April 27, 2017, 6:58am UTC](https://community.plotly.com/t/using-plotly-graphs-as-filters-in-shiny/4063 "2017-04-27T06:58:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![udit](https://avatars.discourse-cdn.com/v4/letter/u/35a633/32.png) [@udit](https://community.plotly.com/u/udit)\
**Post date:** [April 27, 2017, 6:58am UTC](https://community.plotly.com/t/using-plotly-graphs-as-filters-in-shiny/4063/1 "2017-04-27T06:58:41Z")

</div>

Hi.

I am building shiny dashboard using renderPlotly commands and I want to using bars in the bar graph as filters for displaying some records upon clicking. Any help on how to go about it would be great.

Thanks

---

<div class="post-metadata">

**Author:** ![carson](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@carson](https://community.plotly.com/u/carson)\
**Post date:** [May 9, 2017, 8:57pm UTC](https://community.plotly.com/t/using-plotly-graphs-as-filters-in-shiny/4063/2 "2017-05-09T20:57:22Z")

</div>

See [https://cpsievert.github.io/plotly\_book/linking-views-with-shiny.html](https://cpsievert.github.io/plotly_book/linking-views-with-shiny.html)
