Skip to content

Commit 2a20414

Browse files
committed
update description for layout.colorscale attributes
1 parent a299ce0 commit 2a20414

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/components/colorscale/layout_attributes.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,37 @@
1111

1212
var scales = require('./scales');
1313

14+
var msg = 'Note that `autocolorscale` must be true for this attribute to work.';
1415
module.exports = {
1516
editType: 'calc',
1617
sequential: {
1718
valType: 'colorscale',
18-
dflt: scales.Reds,
19+
dflt: 'Reds',
1920
role: 'style',
2021
editType: 'calc',
21-
description: 'Sets the default sequential colorscale for positive values.'
22+
description: [
23+
'Sets the default sequential colorscale for positive values.',
24+
msg
25+
].join(' ')
2226
},
2327
sequentialminus: {
2428
valType: 'colorscale',
25-
dflt: scales.Blues,
29+
dflt: 'Blues',
2630
role: 'style',
2731
editType: 'calc',
28-
description: 'Sets the default sequential colorscale for negative values.'
32+
description: [
33+
'Sets the default sequential colorscale for negative values.',
34+
msg
35+
].join(' ')
2936
},
3037
diverging: {
3138
valType: 'colorscale',
32-
dflt: scales.RdBu,
39+
dflt: 'RdBu',
3340
role: 'style',
3441
editType: 'calc',
35-
description: 'Sets the default diverging colorscale.'
42+
description: [
43+
'Sets the default diverging colorscale.',
44+
msg
45+
].join(' ')
3646
}
3747
};

0 commit comments

Comments
 (0)