Is it possible to configure a plotly 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 a <div> which I'm embedding in a website.
Is this possible with the postMessage API on plotly python offline mode?
listenevents ORhoverevents that correspond to exact pixels on your barchart with a link inside in the postMessage API. github.com/plotly/postMessage-API note you are going to have the easiest conversion if you DON'T go offline when tweaking your code (i.e. if you have sensitive data, just put in random data withnumpy.random.randn(100)or something). Once you have your barchart online, then add a .JSON to the link to get the info you need to use the postMessage API. plot.ly/javascript/plotlyjs-function-reference