Skip to content

Commit d54d922

Browse files
authoredJul 6, 2020
Typo fix in hover-text-and-formatting.md "expectany" (#2603)
1 parent 9c34e4f commit d54d922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ df_2007 = px.data.gapminder().query("year==2007")
228228
fig = px.scatter(df_2007, x="gdpPercap", y="lifeExp", log_x=True, color='continent'
229229
)
230230
print("plotly express hovertemplate:", fig.data[0].hovertemplate)
231-
fig.update_traces(hovertemplate='GDP: %{x} <br>Life Expectany: %{y}') #
231+
fig.update_traces(hovertemplate='GDP: %{x} <br>Life Expectancy: %{y}') #
232232
fig.update_traces(hovertemplate=None, selector={'name':'Europe'}) # revert to default hover
233233
print("user_defined hovertemplate:", fig.data[0].hovertemplate)
234234
fig.show()
@@ -404,4 +404,4 @@ fig.show()
404404

405405
#### Reference
406406

407-
See https://plotly.com/python/reference/ for more information and chart attribute options!
407+
See https://plotly.com/python/reference/ for more information and chart attribute options!

0 commit comments

Comments
 (0)
Please sign in to comment.