Skip to content

Commit ad4841f

Browse files
committed
improve docstring
1 parent 91ceff2 commit ad4841f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plots/template_attributes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ function shapeTemplateFormatStringDescription() {
2727
return [
2828
'Variables are inserted using %{variable},',
2929
'for example "x0: %{x0}".',
30-
'Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}".',
30+
'Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}". See',
3131
FORMAT_LINK,
3232
'for details on the formatting syntax.',
33-
'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".',
33+
'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{x0|%m %b %Y}". See',
3434
DATE_FORMAT_LINK,
35+
'for details on the date formatting syntax.',
3536
'A single multiplication or division operation may be applied to numeric variables, and combined with',
3637
'd3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second."',
3738
'For log axes, variable values are given in log units.',

0 commit comments

Comments
 (0)