Skip to content

Commit e942bc5

Browse files
committed
fix sankey attribute to pass test-image
1 parent 1919b72 commit e942bc5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/traces/sankey/attributes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ 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({
@@ -121,7 +122,7 @@ module.exports = overrideAll({
121122
role: 'style',
122123
description: 'Sets the thickness (in px) of the `nodes`.'
123124
},
124-
hoverinfo: Object.assign({}, plotAttrs.hoverinfo, {flags: []}),
125+
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {flags: []}),
125126
hoverlabel: fxAttrs.hoverlabel, // needs editType override,
126127
description: 'The nodes of the Sankey plot.'
127128
},
@@ -181,7 +182,7 @@ module.exports = overrideAll({
181182
role: 'info',
182183
description: 'A numeric value representing the flow volume value.'
183184
},
184-
hoverinfo: Object.assign({}, plotAttrs.hoverinfo, {flags: []}),
185+
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {flags: []}),
185186
hoverlabel: fxAttrs.hoverlabel, // needs editType override,
186187
description: 'The links of the Sankey plot.'
187188
}

0 commit comments

Comments
 (0)