@@ -12,9 +12,8 @@ var scatterAttrs = require('../scatter/attributes');
1212var colorAttrs = require ( '../../components/color/attributes' ) ;
1313var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
1414
15- var scatterMarkerAttrs = scatterAttrs . marker ,
16- scatterMarkerLineAttrs = scatterMarkerAttrs . line ;
17-
15+ var scatterMarkerAttrs = scatterAttrs . marker ;
16+ var scatterMarkerLineAttrs = scatterMarkerAttrs . line ;
1817
1918module . exports = {
2019 y : {
@@ -63,6 +62,16 @@ module.exports = {
6362 'missing and the position axis is categorical'
6463 ] . join ( ' ' )
6564 } ,
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+ } ) ,
6675 whiskerwidth : {
6776 valType : 'number' ,
6877 min : 0 ,
@@ -159,9 +168,11 @@ module.exports = {
159168 { arrayOk : false , editType : 'style' } ) ,
160169 line : {
161170 color : extendFlat ( { } , scatterMarkerLineAttrs . color ,
162- { arrayOk : false , dflt : colorAttrs . defaultLine , editType : 'style' } ) ,
171+ { arrayOk : false , dflt : colorAttrs . defaultLine , editType : 'style' }
172+ ) ,
163173 width : extendFlat ( { } , scatterMarkerLineAttrs . width ,
164- { arrayOk : false , dflt : 0 , editType : 'style' } ) ,
174+ { arrayOk : false , dflt : 0 , editType : 'style' }
175+ ) ,
165176 outliercolor : {
166177 valType : 'color' ,
167178 role : 'style' ,
@@ -202,5 +213,16 @@ module.exports = {
202213 } ,
203214 editType : 'plot'
204215 } ,
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+ }
206228} ;
0 commit comments