From 3611f09910964250d1c088425ec1d320b01e5a08 Mon Sep 17 00:00:00 2001 From: Edward O Date: Mon, 4 May 2020 10:30:10 +0200 Subject: [PATCH] Fix "Advanced Hover Template" typo x and y were swapped. --- doc/python/hover-text-and-formatting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/python/hover-text-and-formatting.md b/doc/python/hover-text-and-formatting.md index 4b6c1be4e2f..f9af98819f2 100644 --- a/doc/python/hover-text-and-formatting.md +++ b/doc/python/hover-text-and-formatting.md @@ -268,8 +268,8 @@ for continent_name, continent in continent_data.items(): text=df_2007['continent'], hovertemplate= "%{text}

" + - "GDP per Capita: %{y:$,.0f}
" + - "Life Expectation: %{x:.0%}
" + + "GDP per Capita: %{x:$,.0f}
" + + "Life Expectation: %{y:.0%}
" + "Population: %{marker.size:,}" + "", marker_size=continent['size'],