Skip to content

Commit 217ed66

Browse files
authored
Update doc/python/hover-text-and-formatting.md
1 parent eba6910 commit 217ed66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ fig.show()
372372
### Advanced Hover Template
373373

374374
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`.
375-
```
375+
376+
```python
376377
import plotly.graph_objects as go
377378
import plotly.express as px
378379
import pandas as pd

0 commit comments

Comments
 (0)