@@ -12,9 +12,8 @@ var scatterAttrs = require('../scatter/attributes');
12
12
var colorAttrs = require ( '../../components/color/attributes' ) ;
13
13
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
14
14
15
- var scatterMarkerAttrs = scatterAttrs . marker ,
16
- scatterMarkerLineAttrs = scatterMarkerAttrs . line ;
17
-
15
+ var scatterMarkerAttrs = scatterAttrs . marker ;
16
+ var scatterMarkerLineAttrs = scatterMarkerAttrs . line ;
18
17
19
18
module . exports = {
20
19
y : {
@@ -63,6 +62,16 @@ module.exports = {
63
62
'missing and the position axis is categorical'
64
63
] . join ( ' ' )
65
64
} ,
65
+ text : extendFlat ( { } , scatterAttrs . text , {
66
+ description : [
67
+ 'Sets the text elements associated with each sample value.' ,
68
+ 'If a single string, the same string appears over' ,
69
+ 'all the data points.' ,
70
+ 'If an array of string, the items are mapped in order to the' ,
71
+ 'this trace\'s (x,y) coordinates.' ,
72
+ 'To be seen, trace `hoverinfo` must contain a *text* flag.'
73
+ ] . join ( ' ' )
74
+ } ) ,
66
75
whiskerwidth : {
67
76
valType : 'number' ,
68
77
min : 0 ,
@@ -159,9 +168,11 @@ module.exports = {
159
168
{ arrayOk : false , editType : 'style' } ) ,
160
169
line : {
161
170
color : extendFlat ( { } , scatterMarkerLineAttrs . color ,
162
- { arrayOk : false , dflt : colorAttrs . defaultLine , editType : 'style' } ) ,
171
+ { arrayOk : false , dflt : colorAttrs . defaultLine , editType : 'style' }
172
+ ) ,
163
173
width : extendFlat ( { } , scatterMarkerLineAttrs . width ,
164
- { arrayOk : false , dflt : 0 , editType : 'style' } ) ,
174
+ { arrayOk : false , dflt : 0 , editType : 'style' }
175
+ ) ,
165
176
outliercolor : {
166
177
valType : 'color' ,
167
178
role : 'style' ,
@@ -202,5 +213,16 @@ module.exports = {
202
213
} ,
203
214
editType : 'plot'
204
215
} ,
205
- fillcolor : scatterAttrs . fillcolor
216
+ fillcolor : scatterAttrs . fillcolor ,
217
+ hoveron : {
218
+ valType : 'flaglist' ,
219
+ flags : [ 'boxes' , 'points' ] ,
220
+ dflt : 'boxes+points' ,
221
+ role : 'info' ,
222
+ editType : 'style' ,
223
+ description : [
224
+ 'Do the hover effects highlight individual boxes ' ,
225
+ 'or sample points or both?'
226
+ ] . join ( ' ' )
227
+ }
206
228
} ;
0 commit comments