@@ -14,78 +14,73 @@ var colorscaleAttrs = require('../../components/colorscale/attributes');
14
14
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
15
15
16
16
17
- module . exports = {
18
- z : {
19
- valType : 'data_array' ,
20
- description : 'Sets the z data.'
21
- } ,
22
- x : scatterAttrs . x ,
23
- x0 : scatterAttrs . x0 ,
24
- dx : scatterAttrs . dx ,
25
- y : scatterAttrs . y ,
26
- y0 : scatterAttrs . y0 ,
27
- dy : scatterAttrs . dy ,
28
- text : {
29
- valType : 'data_array' ,
30
- description : 'Sets the text elements associated with each z value.'
31
- } ,
32
- transpose : {
33
- valType : 'boolean' ,
34
- dflt : false ,
35
- role : 'info' ,
36
- description : 'Transposes the z data.'
37
- } ,
38
- xtype : {
39
- valType : 'enumerated' ,
40
- values : [ 'array' , 'scaled' ] ,
41
- role : 'info' ,
42
- description : [
43
- 'If *array*, the heatmap\'s x coordinates are given by *x*' ,
44
- '(the default behavior when `x` is provided).' ,
45
- 'If *scaled*, the heatmap\'s x coordinates are given by *x0* and *dx*' ,
46
- '(the default behavior when `x` is not provided).'
47
- ] . join ( ' ' )
48
- } ,
49
- ytype : {
50
- valType : 'enumerated' ,
51
- values : [ 'array' , 'scaled' ] ,
52
- role : 'info' ,
53
- description : [
54
- 'If *array*, the heatmap\'s y coordinates are given by *y*' ,
55
- '(the default behavior when `y` is provided)' ,
56
- 'If *scaled*, the heatmap\'s y coordinates are given by *y0* and *dy*' ,
57
- '(the default behavior when `y` is not provided)'
58
- ] . join ( ' ' )
59
- } ,
60
- zauto : colorscaleAttrs . zauto ,
61
- zmin : colorscaleAttrs . zmin ,
62
- zmax : colorscaleAttrs . zmax ,
63
- colorscale : colorscaleAttrs . colorscale ,
64
- autocolorscale : extendFlat ( { } , colorscaleAttrs . autocolorscale ,
65
- { dflt : false } ) ,
66
- reversescale : colorscaleAttrs . reversescale ,
67
- showscale : colorscaleAttrs . showscale ,
68
- zsmooth : {
69
- valType : 'enumerated' ,
70
- values : [ 'fast' , 'best' , false ] ,
71
- dflt : false ,
72
- role : 'style' ,
73
- description : [
74
- 'Picks a smoothing algorithm use to smooth `z` data.'
75
- ] . join ( ' ' )
76
- } ,
77
- connectgaps : {
78
- valType : 'boolean' ,
79
- dflt : false ,
80
- role : 'info' ,
81
- description : [
82
- 'Determines whether or not gaps' ,
83
- '(i.e. {nan} or missing values)' ,
84
- 'in the `z` data are filled in.'
85
- ] . join ( ' ' )
86
- } ,
17
+ module . exports = extendFlat ( { } ,
18
+ colorscaleAttrs ,
19
+ { autocolorscale : extendFlat ( { } , colorscaleAttrs . autocolorscale , { dflt : false } ) } ,
20
+ {
21
+ z : {
22
+ valType : 'data_array' ,
23
+ description : 'Sets the z data.'
24
+ } ,
25
+ x : scatterAttrs . x ,
26
+ x0 : scatterAttrs . x0 ,
27
+ dx : scatterAttrs . dx ,
28
+ y : scatterAttrs . y ,
29
+ y0 : scatterAttrs . y0 ,
30
+ dy : scatterAttrs . dy ,
31
+ text : {
32
+ valType : 'data_array' ,
33
+ description : 'Sets the text elements associated with each z value.'
34
+ } ,
35
+ transpose : {
36
+ valType : 'boolean' ,
37
+ dflt : false ,
38
+ role : 'info' ,
39
+ description : 'Transposes the z data.'
40
+ } ,
41
+ xtype : {
42
+ valType : 'enumerated' ,
43
+ values : [ 'array' , 'scaled' ] ,
44
+ role : 'info' ,
45
+ description : [
46
+ 'If *array*, the heatmap\'s x coordinates are given by *x*' ,
47
+ '(the default behavior when `x` is provided).' ,
48
+ 'If *scaled*, the heatmap\'s x coordinates are given by *x0* and *dx*' ,
49
+ '(the default behavior when `x` is not provided).'
50
+ ] . join ( ' ' )
51
+ } ,
52
+ ytype : {
53
+ valType : 'enumerated' ,
54
+ values : [ 'array' , 'scaled' ] ,
55
+ role : 'info' ,
56
+ description : [
57
+ 'If *array*, the heatmap\'s y coordinates are given by *y*' ,
58
+ '(the default behavior when `y` is provided)' ,
59
+ 'If *scaled*, the heatmap\'s y coordinates are given by *y0* and *dy*' ,
60
+ '(the default behavior when `y` is not provided)'
61
+ ] . join ( ' ' )
62
+ } ,
63
+ zsmooth : {
64
+ valType : 'enumerated' ,
65
+ values : [ 'fast' , 'best' , false ] ,
66
+ dflt : false ,
67
+ role : 'style' ,
68
+ description : [
69
+ 'Picks a smoothing algorithm use to smooth `z` data.'
70
+ ] . join ( ' ' )
71
+ } ,
72
+ connectgaps : {
73
+ valType : 'boolean' ,
74
+ dflt : false ,
75
+ role : 'info' ,
76
+ description : [
77
+ 'Determines whether or not gaps' ,
78
+ '(i.e. {nan} or missing values)' ,
79
+ 'in the `z` data are filled in.'
80
+ ] . join ( ' ' )
81
+ } ,
87
82
88
- _nestedModules : {
89
- 'colorbar' : 'Colorbar'
90
- }
91
- } ;
83
+ _nestedModules : {
84
+ 'colorbar' : 'Colorbar'
85
+ }
86
+ } ) ;
0 commit comments