88
99'use strict' ;
1010
11- var Plots = require ( '../../plots/plots' ) ;
12-
1311var Box = { } ;
1412
15- Plots . register ( Box , 'box' ,
16- [ 'cartesian' , 'symbols' , 'oriented' , 'box' , 'showLegend' ] , {
17- description : [
18- 'In vertical (horizontal) box plots,' ,
19- 'statistics are computed using `y` (`x`) values.' ,
20- 'By supplying an `x` (`y`) array, one box per distinct x (y) value' ,
21- 'is drawn' ,
22- 'If no `x` (`y`) {array} is provided, a single box is drawn.' ,
23- 'That box position is then positioned with' ,
24- 'with `name` or with `x0` (`y0`) if provided.' ,
25- 'Each box spans from quartile 1 (Q1) to quartile 3 (Q3).' ,
26- 'The second quartile (Q2) is marked by a line inside the box.' ,
27- 'By default, the whiskers correspond to the box\' edges' ,
28- '+/- 1.5 times the interquartile range (IQR = Q3-Q1),' ,
29- 'see *boxpoints* for other options.'
30- ] . join ( ' ' )
31- }
32- ) ;
33-
3413Box . attributes = require ( './attributes' ) ;
3514Box . layoutAttributes = require ( './layout_attributes' ) ;
3615Box . supplyDefaults = require ( './defaults' ) ;
@@ -41,4 +20,23 @@ Box.plot = require('./plot');
4120Box . style = require ( './style' ) ;
4221Box . hoverPoints = require ( './hover' ) ;
4322
23+ Box . _type = 'box' ;
24+ Box . _categories = [ 'cartesian' , 'symbols' , 'oriented' , 'box' , 'showLegend' ] ;
25+ Box . _meta = {
26+ description : [
27+ 'In vertical (horizontal) box plots,' ,
28+ 'statistics are computed using `y` (`x`) values.' ,
29+ 'By supplying an `x` (`y`) array, one box per distinct x (y) value' ,
30+ 'is drawn' ,
31+ 'If no `x` (`y`) {array} is provided, a single box is drawn.' ,
32+ 'That box position is then positioned with' ,
33+ 'with `name` or with `x0` (`y0`) if provided.' ,
34+ 'Each box spans from quartile 1 (Q1) to quartile 3 (Q3).' ,
35+ 'The second quartile (Q2) is marked by a line inside the box.' ,
36+ 'By default, the whiskers correspond to the box\' edges' ,
37+ '+/- 1.5 times the interquartile range (IQR = Q3-Q1),' ,
38+ 'see *boxpoints* for other options.'
39+ ] . join ( ' ' )
40+ } ;
41+
4442module . exports = Box ;
0 commit comments