Skip to content

Commit 6ab718d

Browse files
committed
remove hoverinfo flags that aren't implemented
1 parent 4453455 commit 6ab718d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: src/traces/sankey/attributes.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,21 @@ var colorAttrs = require('../../components/color/attributes');
1414
var fxAttrs = require('../../components/fx/attributes');
1515
var domainAttrs = require('../../plots/domain').attributes;
1616

17+
var extendFlat = require('../../lib/extend').extendFlat;
1718
var overrideAll = require('../../plot_api/edit_types').overrideAll;
1819

1920
module.exports = overrideAll({
20-
hoverinfo: plotAttrs.hoverinfo,
21+
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {
22+
flags: [],
23+
arrayOk: false,
24+
description: [
25+
'Determines which trace information appear on hover.',
26+
'If `none` or `skip` are set, no information is displayed upon hovering.',
27+
'But, if `none` is set, click and hover events are still fired.',
28+
'Note that this attribute is superseded by `node.hoverinfo` and `node.hoverinfo`',
29+
'for nodes and links respectively.'
30+
].join(' ')
31+
}),
2132
hoverlabel: fxAttrs.hoverlabel,
2233
domain: domainAttrs({name: 'sankey', trace: true}),
2334

0 commit comments

Comments
 (0)