# On Click event on a bar graph should redirect to another page

**URL:** <https://community.plotly.com/t/on-click-event-on-a-bar-graph-should-redirect-to-another-page/34861>\
**Category:** 📊 Plotly Python\
**Created:** [February 12, 2020, 10:05am UTC](https://community.plotly.com/t/on-click-event-on-a-bar-graph-should-redirect-to-another-page/34861 "2020-02-12T10:05:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameerass](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@sameerass](https://community.plotly.com/u/sameerass)\
**Post date:** [February 12, 2020, 10:05am UTC](https://community.plotly.com/t/on-click-event-on-a-bar-graph-should-redirect-to-another-page/34861/1 "2020-02-12T10:05:01Z")

</div>

Hello there,  
I have a stacked bar chart which has the statistics of incidents with respect to their priorities. If I click on a bar, it should connect to a database and fetch all those tickets which has the priority and date values on the bar I clicked and show up on a new page as a table. Please let me know how to do this using plotly.

Appreciate your help!  
Thank you!
