|
8 | 8 |
|
9 | 9 | 'use strict'; |
10 | 10 |
|
11 | | -var Box = {}; |
| 11 | +module.exports = { |
| 12 | + attributes: require('./attributes'), |
| 13 | + layoutAttributes: require('./layout_attributes'), |
| 14 | + supplyDefaults: require('./defaults').supplyDefaults, |
| 15 | + crossTraceDefaults: require('./defaults').crossTraceDefaults, |
| 16 | + supplyLayoutDefaults: require('./layout_defaults').supplyLayoutDefaults, |
| 17 | + calc: require('./calc'), |
| 18 | + crossTraceCalc: require('./cross_trace_calc').crossTraceCalc, |
| 19 | + plot: require('./plot').plot, |
| 20 | + style: require('./style').style, |
| 21 | + styleOnSelect: require('./style').styleOnSelect, |
| 22 | + hoverPoints: require('./hover').hoverPoints, |
| 23 | + eventData: require('./event_data'), |
| 24 | + selectPoints: require('./select'), |
12 | 25 |
|
13 | | -Box.attributes = require('./attributes'); |
14 | | -Box.layoutAttributes = require('./layout_attributes'); |
15 | | -Box.supplyDefaults = require('./defaults').supplyDefaults; |
16 | | -Box.crossTraceDefaults = require('./defaults').crossTraceDefaults; |
17 | | -Box.supplyLayoutDefaults = require('./layout_defaults').supplyLayoutDefaults; |
18 | | -Box.calc = require('./calc'); |
19 | | -Box.crossTraceCalc = require('./cross_trace_calc').crossTraceCalc; |
20 | | -Box.plot = require('./plot').plot; |
21 | | -Box.style = require('./style').style; |
22 | | -Box.styleOnSelect = require('./style').styleOnSelect; |
23 | | -Box.hoverPoints = require('./hover').hoverPoints; |
24 | | -Box.eventData = require('./event_data'); |
25 | | -Box.selectPoints = require('./select'); |
26 | | - |
27 | | -Box.moduleType = 'trace'; |
28 | | -Box.name = 'box'; |
29 | | -Box.basePlotModule = require('../../plots/cartesian'); |
30 | | -Box.categories = ['cartesian', 'svg', 'symbols', 'oriented', 'box-violin', 'showLegend', 'boxLayout', 'zoomScale']; |
31 | | -Box.meta = { |
32 | | - description: [ |
33 | | - 'In vertical (horizontal) box plots,', |
34 | | - 'statistics are computed using `y` (`x`) values.', |
35 | | - 'By supplying an `x` (`y`) array, one box per distinct x (y) value', |
36 | | - 'is drawn', |
37 | | - 'If no `x` (`y`) {array} is provided, a single box is drawn.', |
38 | | - 'That box position is then positioned with', |
39 | | - 'with `name` or with `x0` (`y0`) if provided.', |
40 | | - 'Each box spans from quartile 1 (Q1) to quartile 3 (Q3).', |
41 | | - 'The second quartile (Q2) is marked by a line inside the box.', |
42 | | - 'By default, the whiskers correspond to the box\' edges', |
43 | | - '+/- 1.5 times the interquartile range (IQR = Q3-Q1),', |
44 | | - 'see *boxpoints* for other options.' |
45 | | - ].join(' ') |
| 26 | + moduleType: 'trace', |
| 27 | + name: 'box', |
| 28 | + basePlotModule: require('../../plots/cartesian'), |
| 29 | + categories: ['cartesian', 'svg', 'symbols', 'oriented', 'box-violin', 'showLegend', 'boxLayout', 'zoomScale'], |
| 30 | + meta: { |
| 31 | + description: [ |
| 32 | + 'In vertical (horizontal) box plots,', |
| 33 | + 'statistics are computed using `y` (`x`) values.', |
| 34 | + 'By supplying an `x` (`y`) array, one box per distinct x (y) value', |
| 35 | + 'is drawn', |
| 36 | + 'If no `x` (`y`) {array} is provided, a single box is drawn.', |
| 37 | + 'That box position is then positioned with', |
| 38 | + 'with `name` or with `x0` (`y0`) if provided.', |
| 39 | + 'Each box spans from quartile 1 (Q1) to quartile 3 (Q3).', |
| 40 | + 'The second quartile (Q2) is marked by a line inside the box.', |
| 41 | + 'By default, the whiskers correspond to the box\' edges', |
| 42 | + '+/- 1.5 times the interquartile range (IQR: Q3-Q1),', |
| 43 | + 'see *boxpoints* for other options.' |
| 44 | + ].join(' ') |
| 45 | + } |
46 | 46 | }; |
47 | | - |
48 | | -module.exports = Box; |
0 commit comments