8
8
9
9
'use strict' ;
10
10
11
- var pieAtts = require ( '../pie/attributes' ) ;
12
11
var barAttrs = require ( '../bar/attributes' ) ;
13
12
var lineAttrs = require ( '../scatter/attributes' ) . line ;
14
13
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
@@ -25,14 +24,19 @@ module.exports = {
25
24
hovertext : barAttrs . hovertext ,
26
25
hovertemplate : barAttrs . hovertemplate ,
27
26
28
- textinfo : extendFlat ( { } , pieAtts . textinfo , {
29
- editType : 'plot ' ,
27
+ textinfo : {
28
+ valType : 'flaglist ' ,
30
29
flags : [ 'label' , 'text' , 'percent initial' , 'percent previous' , 'percent total' , 'value' ] ,
30
+ extras : [ 'none' ] ,
31
+ role : 'info' ,
32
+ editType : 'plot' ,
31
33
arrayOk : false ,
32
34
description : [
33
- 'Determines which trace information appear on the graph.'
35
+ 'Determines which trace information appear on the graph.' ,
36
+ 'In the case of having multiple funnels, percentages & totals' ,
37
+ 'are computed separately (per trace).'
34
38
] . join ( ' ' )
35
- } ) ,
39
+ } ,
36
40
37
41
text : barAttrs . text ,
38
42
textposition : extendFlat ( { } , barAttrs . textposition , { dflt : 'auto' } ) ,
@@ -42,9 +46,19 @@ module.exports = {
42
46
insidetextfont : barAttrs . insidetextfont ,
43
47
outsidetextfont : barAttrs . outsidetextfont ,
44
48
constraintext : barAttrs . constraintext ,
45
-
46
49
cliponaxis : barAttrs . cliponaxis ,
47
- orientation : barAttrs . orientation ,
50
+
51
+ orientation : extendFlat ( { } , barAttrs . orientation , {
52
+ description : [
53
+ 'Sets the orientation of the funnels.' ,
54
+ 'With *v* (*h*), the value of the each bar spans' ,
55
+ 'along the vertical (horizontal).' ,
56
+ 'By default funnels are tend to be oriented horizontally;' ,
57
+ 'unless only *y* array is presented or orientation is set to *v*.' ,
58
+ 'Also regarding graphs including only \'horizontal\' funnels,' ,
59
+ '*autorange* on the *y-axis* are set to *reversed*.'
60
+ ] . join ( ' ' )
61
+ } ) ,
48
62
49
63
offset : extendFlat ( { } , barAttrs . offset , { arrayOk : false } ) ,
50
64
width : extendFlat ( { } , barAttrs . width , { arrayOk : false } ) ,
0 commit comments