Skip to content
Advertisement

Open a url by clicking a data point in plotly?

I have successfully created plotly graphs from python, and gone as far as creating custom html tooltips for the datapoints. But I haven’t succeeded in adding functionality to open a link if someone clicks on a datapoint. What I would like is a separate tab to pop up showing more information linked to that particular data point.

Can anyone think of a way to achieve this with plotly?

Advertisement

Answer

It’s not quite possible yet, but the best option might be to include a link in the text as hover, here is an example: https://plot.ly/~chris/2540 (click the Code tab to see how to replicate the graph)

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement