Skip to content

Commit 3611f09

Browse files
authored
Fix "Advanced Hover Template" typo
x and y were swapped.
1 parent f74fd61 commit 3611f09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ for continent_name, continent in continent_data.items():
268268
text=df_2007['continent'],
269269
hovertemplate=
270270
"<b>%{text}</b><br><br>" +
271-
"GDP per Capita: %{y:$,.0f}<br>" +
272-
"Life Expectation: %{x:.0%}<br>" +
271+
"GDP per Capita: %{x:$,.0f}<br>" +
272+
"Life Expectation: %{y:.0%}<br>" +
273273
"Population: %{marker.size:,}" +
274274
"<extra></extra>",
275275
marker_size=continent['size'],

0 commit comments

Comments
 (0)