From cf4fea167c68260bdab7830ff510fdd01169b8e2 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 25 Jun 2020 21:37:29 -0700 Subject: [PATCH] Typo fix in hover-text-and-formatting.md "expectany" --- 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 770d07536e7..1f9a0a475c3 100644 --- a/doc/python/hover-text-and-formatting.md +++ b/doc/python/hover-text-and-formatting.md @@ -228,7 +228,7 @@ df_2007 = px.data.gapminder().query("year==2007") fig = px.scatter(df_2007, x="gdpPercap", y="lifeExp", log_x=True, color='continent' ) print("plotly express hovertemplate:", fig.data[0].hovertemplate) -fig.update_traces(hovertemplate='GDP: %{x}
Life Expectany: %{y}') # +fig.update_traces(hovertemplate='GDP: %{x}
Life Expectancy: %{y}') # fig.update_traces(hovertemplate=None, selector={'name':'Europe'}) # revert to default hover print("user_defined hovertemplate:", fig.data[0].hovertemplate) fig.show() @@ -404,4 +404,4 @@ fig.show() #### Reference -See https://plotly.com/python/reference/ for more information and chart attribute options! \ No newline at end of file +See https://plotly.com/python/reference/ for more information and chart attribute options!