Skip to content

Commit 1caf321

Browse files
committed
hovertemplate: update desc, do no list attributes that are arrayOK
1 parent 14ac99f commit 1caf321

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/fx/hovertemplate_attributes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function(opts, extra) {
1919
for(var i = 0; i < keys.length; i++) {
2020
quotedKeys[i] = '`' + keys[i] + '`';
2121
}
22-
descPart = descPart + 'This trace supports the additional ';
22+
descPart = descPart + 'Finally, this trace also supports ';
2323
if(keys.length === 1) {
2424
descPart = 'variable ' + quotedKeys[0];
2525
} else {
@@ -40,6 +40,7 @@ module.exports = function(opts, extra) {
4040
'Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',
4141
'See https://github.com/d3/d3-format/blob/master/README.md#locale_format for details on the formatting syntax.',
4242
'The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plot.ly/javascript/plotlyjs-events/#event-data.',
43+
'Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.'
4344
descPart
4445
].join(' ')
4546
};

src/traces/scatter/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ module.exports = {
2323
// at which we clip all lines to the perimeter
2424
maxScreensAway: 20,
2525

26-
eventDataKeys: ['marker.size', 'marker.color', 'marker.symbol', 'marker.opacity']
26+
eventDataKeys: []
2727
};

0 commit comments

Comments
 (0)