10
10
'use strict' ;
11
11
12
12
var barAttrs = require ( '../bar/attributes' ) ;
13
+ var extendFlat = require ( '../../lib' ) . extendFlat ;
14
+
15
+ var barMarkerAttrs = barAttrs . marker ;
16
+ var barMarkerLineAttrs = barMarkerAttrs . line ;
13
17
14
18
15
19
module . exports = {
@@ -25,17 +29,10 @@ module.exports = {
25
29
'Sets the sample data to be binned on the y axis.'
26
30
] . join ( ' ' )
27
31
} ,
28
- z : {
29
- valType : 'data_array' ,
30
- description : 'Sets the aggregation data.'
31
- } ,
32
- marker : {
33
- color : { // FIXME this overrides 'bar'
34
- valType : 'data_array' ,
35
- arrayOk : undefined
36
- }
37
- } ,
32
+
33
+ text : barAttrs . text ,
38
34
orientation : barAttrs . orientation ,
35
+
39
36
histfunc : {
40
37
valType : 'enumerated' ,
41
38
values : [ 'count' , 'sum' , 'avg' , 'min' , 'max' ] ,
@@ -78,6 +75,7 @@ module.exports = {
78
75
'(here, the sum of all bin area equals 1).'
79
76
] . join ( ' ' )
80
77
} ,
78
+
81
79
autobinx : {
82
80
valType : 'boolean' ,
83
81
dflt : true ,
@@ -95,6 +93,7 @@ module.exports = {
95
93
description : 'Sets the number of x axis bins.'
96
94
} ,
97
95
xbins : makeBinsAttr ( 'x' ) ,
96
+
98
97
autobiny : {
99
98
valType : 'boolean' ,
100
99
dflt : true ,
@@ -111,7 +110,38 @@ module.exports = {
111
110
role : 'style' ,
112
111
description : 'Sets the number of y axis bins.'
113
112
} ,
114
- ybins : makeBinsAttr ( 'y' )
113
+ ybins : makeBinsAttr ( 'y' ) ,
114
+
115
+ marker : {
116
+ color : barMarkerAttrs . color ,
117
+ colorscale : barMarkerAttrs . colorscale ,
118
+ cauto : barMarkerAttrs . cauto ,
119
+ cmax : barMarkerAttrs . cmax ,
120
+ cmin : barMarkerAttrs . cmin ,
121
+ autocolorscale : barMarkerAttrs . autocolorscale ,
122
+ reversescale : barMarkerAttrs . reversescale ,
123
+ showscale : barMarkerAttrs . showscale ,
124
+ line : {
125
+ color : barMarkerLineAttrs . color ,
126
+ colorscale : barMarkerLineAttrs . colorscale ,
127
+ cauto : barMarkerLineAttrs . cauto ,
128
+ cmax : barMarkerLineAttrs . cmax ,
129
+ cmin : barMarkerLineAttrs . cmin ,
130
+ autocolorscale : barMarkerLineAttrs . autocolorscale ,
131
+ reversescale : barMarkerLineAttrs . reversescale ,
132
+ width : extendFlat ( { } , barMarkerLineAttrs . width , { dflt : 0 } )
133
+ }
134
+ } ,
135
+
136
+ _nestedModules : {
137
+ 'error_y' : 'ErrorBars' ,
138
+ 'error_x' : 'ErrorBars' ,
139
+ 'marker.colorbar' : 'Colorbar'
140
+ } ,
141
+
142
+ _deprecated : {
143
+ bardir : barAttrs . _deprecated . bardir
144
+ }
115
145
} ;
116
146
117
147
function makeBinsAttr ( axLetter ) {
0 commit comments