8000 few minor revision · plotly/plotly.py-docs@fe30afb · GitHub
[go: up one dir, main page]

Skip to content

Commit fe30afb

Browse files
author
“mahdis-z”
committed
few minor revision
1 parent 4233260 commit fe30afb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/texttemplate.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ jupyter:
3737
v4upgrade: true
3838
---
3939

40-
### Add Text Template to Pie Chart
40+
### Customize Displayed Text with a Text Template
4141
To show an arbitrary text in your chart you can use [texttemplate](https://plot.ly/python/reference/#pie-texttemplate), which is a template string used for rendering the information, and will override [textinfo](https://plot.ly/python/reference/#treemap-textinfo).
42+
This template string can include `variables` in %{variable} format, `numbers` in [d3-format's syntax](https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_forma), and `date` in [d3-time-fomrat's syntax](https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format).
43+
`texttemplate` customizes the text that appears on your plot vs. [hovertemplate](https://plot.ly/python/reference/#pie-hovertemplate) customize the tooltip text.
4244

4345
```python
4446
import plotly.graph_objects as go

0 commit comments

Comments
 (0)
0