Skip to content

Commit 2f39de8

Browse files
fixing a bug that causes the hovertext to show %{text} rather than the continent
There is a bug here that causes the hovertext to show one line as %{text} rather than showing the continent name. I have fixed it the way the comments imply that the example intended. either we should add a text parameter as I've done here, or the example could remove the %{text} from the hovertext and from the comments.
1 parent 73722a5 commit 2f39de8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/python/hover-text-and-formatting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ for continent_name, df in continent_data.items():
401401
x=df['gdpPercap'],
402402
y=df['lifeExp'],
403403
marker_size=df['size'],
404+
text=df['continent'],
404405
name=continent_name,
405406

406407
# The next three parameters specify the hover text

0 commit comments

Comments
 (0)