I am plotting a graph with Plotly similar to the example on the Plotly website.
Along with the hover text on the graph nodes, I want to have a hover text on the edges as well.
I tried to achieve this by modifying the trace object for edges by adding a 'name' field, but this didn't work and was putting the 'name' on the nodes.
trace3=Scatter(
x=Xed,
y=Yed,
name="my_hover_text",
mode='lines',
line=Line(color='rgb(210,210,210)', width=1),
hoverinfo='name'
)
Using the 'text' field instead of the 'name' field, gives the very same result.
I have also tried to have a separate trace for each edge, which should solve the confusion about where to put the name on the line, but this lead me nowhere.
As a bottom line, I need a way to put a (hover) label/text on a line connecting two points.