Skip to content

Commit 2ffe7f1

Browse files
authored
Update readme.md
1 parent 94363da commit 2ffe7f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ entities:
196196
texttemplate: >- # custom format for show_value
197197
<b>%{y}</b>%{customdata.unit_of_measurement}<br>
198198
%{customdata.name}
199+
# to show only 2 decimals: "%{y:.2f}"
200+
# see more here: https://plotly.com/javascript/reference/pie/#pie-texttemplate
201+
199202
hovertemplate: >- # custom format for tooltip
200203
<b>%{customdata.name}</b><br><i>%{x}</i><br>
201204
%{y}%{customdata.unit_of_measurement}

0 commit comments

Comments
 (0)