简体   繁体   中英

open html link by clicking on point python plotly

I have graph line+markers using Plotly and a list of Html links corresponding to point. how can I embed it in the graph? so the link can be open by clicking on the point.

It's not quite straight-forward unfortunately but this link should help.

https://chart-studio.plotly.com/~chris/2540/hover-over-the-points-to-see-the-link/#plot

Essentially you are calling text on your Scatter and passing through <a> tags.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM