File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
src/components/colorscale Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 11
11
12
12
var scales = require ( './scales' ) ;
13
13
14
+ var msg = 'Note that `autocolorscale` must be true for this attribute to work.' ;
14
15
module . exports = {
15
16
editType : 'calc' ,
16
17
sequential : {
17
18
valType : 'colorscale' ,
18
- dflt : scales . Reds ,
19
+ dflt : ' Reds' ,
19
20
role : 'style' ,
20
21
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 ( ' ' )
22
26
} ,
23
27
sequentialminus : {
24
28
valType : 'colorscale' ,
25
- dflt : scales . Blues ,
29
+ dflt : ' Blues' ,
26
30
role : 'style' ,
27
31
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 ( ' ' )
29
36
} ,
30
37
diverging : {
31
38
valType : 'colorscale' ,
32
- dflt : scales . RdBu ,
39
+ dflt : ' RdBu' ,
33
40
role : 'style' ,
34
41
editType : 'calc' ,
35
- description : 'Sets the default diverging colorscale.'
42
+ description : [
43
+ 'Sets the default diverging colorscale.' ,
44
+ msg
45
+ ] . join ( ' ' )
36
46
}
37
47
} ;
You can’t perform that action at this time.
0 commit comments