Skip to content

Commit cf826dd

Browse files
committed
texttemplate: update description
1 parent 9330290 commit cf826dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plots/texttemplate_attributes.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ module.exports = function(opts, extra) {
3434
role: 'info',
3535
editType: opts.editType || 'calc',
3636
description: [
37-
'Template string used for rendering the information that appear on points.',
37+
'Template string used for rendering the information text that appear on points.',
3838
'Note that this will override `textinfo`.',
3939
'Variables are inserted using %{variable}, for example "y: %{y}".',
40+
'If the `text` attribute is set, it will be available via "%{text}"',
4041
'Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',
4142
FORMAT_LINK,
4243
'for details on the formatting syntax.',

0 commit comments

Comments
 (0)