Skip to content

Commit d595cd5

Browse files
author
mahdis-z
committed
multiple tooltips
1 parent c31802f commit d595cd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/python/sankey-diagram.md

+2
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ fig.show()
9696
```
9797

9898
### Style Sankey Diagram
99+
This example also uses [hovermode](https://plot.ly/python/reference/#layout-hovermode) to enable multiple tooltips.
99100

100101
```python
101102
import plotly.graph_objects as go
@@ -123,6 +124,7 @@ fig = go.Figure(data=[go.Sankey(
123124
))])
124125

125126
fig.update_layout(
127+
hovermode = 'x',
126128
title="Energy forecast for 2050<br>Source: Department of Energy & Climate Change, Tom Counsell via <a href='https://bost.ocks.org/mike/sankey/'>Mike Bostock</a>",
127129
font=dict(size = 10, color = 'white'),
128130
plot_bgcolor='black',

0 commit comments

Comments
 (0)