Skip to content

Commit 7c24d29

Browse files
committed
fix sankey attributes to pass plotschema test
1 parent 706e7ae commit 7c24d29

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/traces/sankey/attributes.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,14 @@ var attrs = module.exports = overrideAll({
122122
role: 'style',
123123
description: 'Sets the thickness (in px) of the `nodes`.'
124124
},
125-
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {valtype: 'enumerated', values: ['all', 'none', 'skip'], flags: [], arrayOk: false }),
125+
hoverinfo: {
126+
valtype: 'enumerated',
127+
values: ['all', 'none', 'skip'],
128+
dflt: 'all',
129+
role: 'info',
130+
editType: 'none',
131+
description: plotAttrs.hoverinfo.description
132+
},
126133
hoverlabel: fxAttrs.hoverlabel, // needs editType override,
127134
description: 'The nodes of the Sankey plot.'
128135
},
@@ -182,7 +189,14 @@ var attrs = module.exports = overrideAll({
182189
role: 'info',
183190
description: 'A numeric value representing the flow volume value.'
184191
},
185-
hoverinfo: extendFlat({}, plotAttrs.hoverinfo, {valtype: 'enumerated', values: ['all', 'none', 'skip'], flags: [], arrayOk: false }),
192+
hoverinfo: {
193+
valtype: 'enumerated',
194+
values: ['all', 'none', 'skip'],
195+
dflt: 'all',
196+
role: 'info',
197+
editType: 'none',
198+
description: plotAttrs.hoverinfo.description
199+
},
186200
hoverlabel: fxAttrs.hoverlabel, // needs editType override,
187201
description: 'The links of the Sankey plot.'
188202
}

0 commit comments

Comments
 (0)