Skip to content

Commit b6c3084

Browse files
Merge pull request #2431 from eddy-geek/patch-1
Fix "Advanced Hover Template" typo
2 parents f74fd61 + 3611f09 commit b6c3084

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)