Black Lives Matter. Please consider donating to Black Girls Code today.

Visit URL on click

Is it possible to configure a plot so that the user is taken to a specific url when they click on a certain data point?

My intended usage is for bar charts: I’d like to be able to click on a bar and then be taken to a url, each bar being configured with a different url.

I’m using plotly python offline to create divs which I’m embedding in a website.

Is this possible with the postMessage API?