Skip to content

Commit 5e43023

Browse files
committed
sankey: fix attribute role and editType
1 parent 6f056eb commit 5e43023

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/traces/sankey/attributes.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -231,29 +231,33 @@ var attrs = module.exports = overrideAll({
231231
editType: 'calc',
232232
label: {
233233
valType: 'string',
234-
role: 'calc',
234+
role: 'info',
235+
editType: 'calc',
235236
description: 'The label of the links to color based on their concentration within a flow.',
236237
dflt: ''
237238
},
238239
cmax: {
239240
valType: 'number',
240-
role: 'calc',
241+
role: 'info',
242+
editType: 'calc',
241243
dflt: 1,
242244
description: [
243245
'Sets the upper bound of the color domain.'
244246
].join('')
245247
},
246248
cmin: {
247249
valType: 'number',
248-
role: 'calc',
250+
role: 'info',
251+
editType: 'calc',
249252
dflt: 0,
250253
description: [
251254
'Sets the lower bound of the color domain.'
252255
].join('')
253256
},
254257
colorscale: extendFlat(colorAttributes().colorscale, {dflt: [[0, 'white'], [1, 'black']]})
255258
}),
256-
description: 'The links of the Sankey plot.'
259+
description: 'The links of the Sankey plot.',
260+
role: 'info'
257261
}
258262
}, 'calc', 'nested');
259263
attrs.transforms = undefined;

0 commit comments

Comments
 (0)