8
8
9
9
'use strict' ;
10
10
11
+ var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
11
12
var scatterPolarAttrs = require ( '../scatterpolar/attributes' ) ;
12
13
var barAttrs = require ( '../bar/attributes' ) ;
13
14
@@ -28,11 +29,34 @@ module.exports = {
28
29
// description: 'Sets the orientation of the bars.'
29
30
// },
30
31
31
- base : barAttrs . base ,
32
- offset : barAttrs . offset ,
33
- width : barAttrs . width ,
32
+ base : extendFlat ( { } , barAttrs . base , {
33
+ description : [
34
+ 'Sets where the bar base is drawn (in radial axis units).' ,
35
+ 'In *stack* barmode,' ,
36
+ 'traces that set *base* will be excluded' ,
37
+ 'and drawn in *overlay* mode instead.'
38
+ ] . join ( ' ' )
39
+ } ) ,
40
+ offset : extendFlat ( { } , barAttrs . offset , {
41
+ description : [
42
+ 'Shifts the angular position where the bar is drawn' ,
43
+ '(in *thetatunit* units).'
44
+ ] . join ( ' ' )
45
+ } ) ,
46
+ width : extendFlat ( { } , barAttrs . width , {
47
+ description : [
48
+ 'Sets the bar angular width (in *thetaunit* units).'
49
+ ] . join ( ' ' )
50
+ } ) ,
34
51
35
- text : barAttrs . text ,
52
+ text : extendFlat ( { } , barAttrs . text , {
53
+ description : [
54
+ 'Sets hover text elements associated with each bar.' ,
55
+ 'If a single string, the same string appears over all bars.' ,
56
+ 'If an array of string, the items are mapped in order to the' ,
57
+ 'this trace\'s coordinates.'
58
+ ] . join ( ' ' )
59
+ } ) ,
36
60
// hovertext: barAttrs.hovertext,
37
61
38
62
// textposition: {},
0 commit comments