Skip to content

Commit fa931e4

Browse files
committed
Update hover-text-and-formatting.md
1 parent 8fcb2bf commit fa931e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/python/hover-text-and-formatting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ fig.show()
371371

372372
### Advanced Hover Template
373373

374-
This produces the same graphic as in "Specifying the formatting and labeling of custom fields in a Plotly Express figure using a hovertemplate" above, but does so with the `customdata` and `text` parameters of `graph_objects`. It shows how to specify columns from a dataframe to include in the customdata array using the df[["col_i", "col_j"]] subsetting notation. It then references those variables using e.g. %{customdata[0]} in the hovertemplate. It includes comments about major differences between the parameters used by `graph_objects` and `plotly.express`.
374+
This produces the same graphic as in "Specifying the formatting and labeling of custom fields in a Plotly Express figure using a hovertemplate" above, but does so with the `customdata` and `text` parameters of `graph_objects`. It shows how to specify columns from a dataframe to include in the `customdata` array using the `df[["col_i", "col_j"]]` subsetting notation. It then references those variables using e.g. `%{customdata[0]}` in the hovertemplate. It includes comments about major differences between the parameters used by `graph_objects` and `plotly.express`.
375375

376376
```python
377377
import plotly.graph_objects as go

0 commit comments

Comments
 (0)