Skip to content

Commit

Permalink
update hovertemplate description
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Nov 23, 2018
1 parent 6233297 commit d952713
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/fx/hovertemplate_attributes.js
Expand Up @@ -19,7 +19,7 @@ module.exports = function(opts, extra) {
for(var i = 0; i < keys.length; i++) {
quotedKeys[i] = '`' + keys[i] + '`';
}
descPart = descPart + 'Finally, this trace also supports ';
descPart = descPart + 'Finally, the template string has access to ';
if(keys.length === 1) {
descPart = 'variable ' + quotedKeys[0];
} else {
Expand Down
6 changes: 4 additions & 2 deletions src/traces/sankey/attributes.js
Expand Up @@ -148,7 +148,8 @@ var attrs = module.exports = overrideAll({
},
hoverlabel: fxAttrs.hoverlabel, // needs editType override,
hovertemplate: hovertemplateAttrs({}, {
keys: []
description: 'Variables `sourceLinks` and `targetLinks` are arrays of link objects.',
keys: ['value', 'label']
}),
description: 'The nodes of the Sankey plot.'
},
Expand Down Expand Up @@ -221,7 +222,8 @@ var attrs = module.exports = overrideAll({
},
hoverlabel: fxAttrs.hoverlabel, // needs editType override,
hovertemplate: hovertemplateAttrs({}, {
keys: []
description: 'Variables `source` and `target` are node objects.',
keys: ['value', 'label']
}),
description: 'The links of the Sankey plot.'
}
Expand Down

0 comments on commit d952713

Please sign in to comment.