You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plotly/src/traces/pie.rs
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -78,15 +78,15 @@ where
78
78
/// the first point. An underscore before or after “(x|y)other” will add
79
79
/// a space on that side, only when this field is shown. Numbers are
80
80
/// formatted using d3-format’s syntax %{variable:d3-format}, for example
81
-
/// “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax.
82
-
/// Dates are formatted using d3-time-format’s syntax
83
-
/// %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for
81
+
/// “Price: %{y:$.2f}”. <https://github.com/d3/d3-format/tree/v1.4.5#d3-format> for details on the formatting syntax.
82
+
/// Dates are formatted using d3-time-format’s syntax
83
+
/// %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. <https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format> for
84
84
/// details on the date formatting syntax. The variables available in
85
-
/// hovertemplate are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.
86
-
/// Additionally, every attributes that can be specified per-point (the
85
+
/// hovertemplate are the ones emitted as event data described at this link <https://plotly.com/javascript/plotlyjs-events/#event-data>.
86
+
/// Additionally, every attributes that can be specified per-point (the
87
87
/// ones that are arrayOk: true) are available. Finally, the template
88
88
/// string has access to variables label, color, value, percent and text.
89
-
/// Anything contained in tag <extra> is displayed in the secondary box, for
89
+
/// Anything contained in tag \<extra\> is displayed in the secondary box, for
90
90
/// example “<extra>{fullData.name}</extra>”. To hide the secondary box
91
91
/// completely, use an empty tag <extra></extra>.
92
92
#[serde(rename = "hovertemplate")]
@@ -144,8 +144,8 @@ where
144
144
/// axis and colorbar title.text, annotation text rangeselector,
145
145
/// updatemenues and sliders label text all support meta. To access the
146
146
/// trace meta values in an attribute in the same trace, simply use
147
-
/// %{meta[i]} where i is the index or key of the meta item in question. To
148
-
/// access trace meta in layout attributes, use %{data[n[.meta[i]} where i
147
+
/// %{meta\[i\]} where i is the index or key of the meta item in question. To
148
+
/// access trace meta in layout attributes, use %{data[n[.meta\[i\]} where i
149
149
/// is the index or key of the meta and n is the trace index.
150
150
meta:Option<NumOrString>,
151
151
/// Sets the trace name. The trace name appears as the legend item and on
@@ -186,9 +186,10 @@ where
186
186
/// Template string used for rendering the information text that appear on
187
187
/// points. Note that this will override textinfo. Variables are
188
188
/// inserted using %{variable}, for example “y: %{y}”. Numbers are formatted
189
-
/// using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax.
190
-
/// Dates are formatted using d3-time-format’s syntax
191
-
/// %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax.
189
+
/// using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”.
190
+
/// <https://github.com/d3/d3-format/tree/v1.4.5#d3-format> for details on the formatting syntax.
191
+
/// Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example
192
+
/// “Day: %{2019-01-01|%A}”. <https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format> for details on the date formatting syntax.
192
193
/// Every attributes that can be specified per-point (the ones that are
193
194
/// arrayOk: true) are available. Finally, the template string has
194
195
/// access to variables label, color, value, percent and text.
0 commit comments