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

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!