|
10 | 10 |
|
11 | 11 | var histogramAttrs = require('../histogram/attributes'); |
12 | 12 | var heatmapAttrs = require('../heatmap/attributes'); |
| 13 | +var colorscaleAttrs = require('../../components/colorscale/attributes'); |
13 | 14 |
|
14 | | -module.exports = { |
15 | | - x: histogramAttrs.x, |
16 | | - y: histogramAttrs.y, |
| 15 | +var extendFlat = require('../../lib/extend').extendFlat; |
17 | 16 |
|
18 | | - z: { |
19 | | - valType: 'data_array', |
20 | | - description: 'Sets the aggregation data.' |
21 | | - }, |
22 | | - marker: { |
23 | | - color: { |
| 17 | +module.exports = extendFlat({}, |
| 18 | + colorscaleAttrs, |
| 19 | + {autocolorscale: extendFlat({}, colorscaleAttrs.autocolorscale, {dflt: false})}, |
| 20 | + { |
| 21 | + x: histogramAttrs.x, |
| 22 | + y: histogramAttrs.y, |
| 23 | + |
| 24 | + z: { |
24 | 25 | valType: 'data_array', |
25 | 26 | description: 'Sets the aggregation data.' |
| 27 | + }, |
| 28 | + marker: { |
| 29 | + color: { |
| 30 | + valType: 'data_array', |
| 31 | + description: 'Sets the aggregation data.' |
| 32 | + } |
| 33 | + }, |
| 34 | + |
| 35 | + histnorm: histogramAttrs.histnorm, |
| 36 | + histfunc: histogramAttrs.histfunc, |
| 37 | + autobinx: histogramAttrs.autobinx, |
| 38 | + nbinsx: histogramAttrs.nbinsx, |
| 39 | + xbins: histogramAttrs.xbins, |
| 40 | + autobiny: histogramAttrs.autobiny, |
| 41 | + nbinsy: histogramAttrs.nbinsy, |
| 42 | + ybins: histogramAttrs.ybins, |
| 43 | + |
| 44 | + zsmooth: heatmapAttrs.zsmooth, |
| 45 | + |
| 46 | + _nestedModules: { |
| 47 | + 'colorbar': 'Colorbar' |
26 | 48 | } |
27 | | - }, |
28 | | - |
29 | | - histnorm: histogramAttrs.histnorm, |
30 | | - histfunc: histogramAttrs.histfunc, |
31 | | - autobinx: histogramAttrs.autobinx, |
32 | | - nbinsx: histogramAttrs.nbinsx, |
33 | | - xbins: histogramAttrs.xbins, |
34 | | - autobiny: histogramAttrs.autobiny, |
35 | | - nbinsy: histogramAttrs.nbinsy, |
36 | | - ybins: histogramAttrs.ybins, |
37 | | - |
38 | | - zauto: heatmapAttrs.zauto, |
39 | | - zmin: heatmapAttrs.zmin, |
40 | | - zmax: heatmapAttrs.zmax, |
41 | | - colorscale: heatmapAttrs.colorscale, |
42 | | - autocolorscale: heatmapAttrs.autocolorscale, |
43 | | - reversescale: heatmapAttrs.reversescale, |
44 | | - showscale: heatmapAttrs.showscale, |
45 | | - |
46 | | - zsmooth: heatmapAttrs.zsmooth, |
47 | | - |
48 | | - _nestedModules: { |
49 | | - 'colorbar': 'Colorbar' |
50 | | - } |
51 | | -}; |
| 49 | + }); |
0 commit comments