@@ -180,8 +180,7 @@ describe('Test box hover:', function() {
180
180
desc : 'base' ,
181
181
nums : [ '0.55' , '0' , '0.3' , '0.6' , '0.7' ] ,
182
182
name : [ 'radishes' , '' , '' , '' , '' ] ,
183
- axis : 'day 1' ,
184
-
183
+ axis : 'day 1'
185
184
} , {
186
185
desc : 'with mean' ,
187
186
patch : function ( fig ) {
@@ -192,8 +191,7 @@ describe('Test box hover:', function() {
192
191
} ,
193
192
nums : [ '0.55' , '0' , '0.3' , '0.6' , '0.7' , '0.45' ] ,
194
193
name : [ 'radishes' , '' , '' , '' , '' , '' ] ,
195
- axis : 'day 1' ,
196
-
194
+ axis : 'day 1'
197
195
} , {
198
196
desc : 'with sd' ,
199
197
patch : function ( fig ) {
@@ -204,14 +202,29 @@ describe('Test box hover:', function() {
204
202
} ,
205
203
nums : [ '0.55' , '0' , '0.3' , '0.6' , '0.7' , '0.45 ± 0.2362908' ] ,
206
204
name : [ 'radishes' , '' , '' , '' , '' , '' ] ,
207
- axis : 'day 1' ,
205
+ axis : 'day 1'
208
206
} , {
209
207
desc : 'with boxpoints fences' ,
210
208
mock : require ( '@mocks/boxplots_outliercolordflt.json' ) ,
211
209
pos : [ 350 , 200 ] ,
212
210
nums : [ '8.15' , '0.75' , '6.8' , '10.25' , '23.25' , '5.25' , '12' ] ,
213
211
name : [ '' , '' , '' , '' , '' , '' , '' ] ,
214
- axis : 'trace 0' ,
212
+ axis : 'trace 0'
213
+ } , {
214
+ desc : 'with overlaid boxes' ,
215
+ patch : function ( fig ) {
216
+ fig . layout . boxmode = 'overlay' ;
217
+ return fig ;
218
+ } ,
219
+ nums : [
220
+ '0.3' , '0.45' , '0.6' , '1' , '0.55' , '0.2' ,
221
+ '0.6' , '0.7' , '0.45' , '0.1' , '0.6' , '0.9'
222
+ ] ,
223
+ name : [
224
+ '' , 'kale' , '' , '' , 'radishes' , '' ,
225
+ '' , '' , 'carrots' , '' , '' , ''
226
+ ] ,
227
+ axis : 'day 1'
215
228
} , {
216
229
desc : 'hoveron points | hovermode closest' ,
217
230
patch : function ( fig ) {
0 commit comments