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: src/plots/template_attributes.js
+18-19Lines changed: 18 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,10 @@ function templateFormatStringDescription(opts) {
9
9
10
10
return[
11
11
'Variables are inserted using %{variable},',
12
-
'for example "y: %{y}"'+(
13
-
supportOther ?
14
-
' as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.' :
15
-
'.'
16
-
),
12
+
'for example "y: %{y}"'+
13
+
(supportOther
14
+
? ' as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.'
15
+
: '.'),
17
16
'Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',
18
17
FORMAT_LINK,
19
18
'for details on the formatting syntax.',
@@ -37,29 +36,30 @@ function shapeTemplateFormatStringDescription() {
37
36
'A single multiplication or division operation may be applied to numeric variables, and combined with',
38
37
'd3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second."',
39
38
'For log axes, variable values are given in log units.',
40
-
'For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms.',
39
+
'For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms.'
'The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.',
77
77
'Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.',
0 commit comments