@@ -330,12 +330,13 @@ module.exports = {
330
330
] . join ( ' ' )
331
331
} ,
332
332
// scaleanchor: not used directly, just put here for reference
333
- // values are any opposite-letter axis id
333
+ // values are any opposite-letter axis id, or `false`.
334
334
scaleanchor : {
335
335
valType : 'enumerated' ,
336
336
values : [
337
337
constants . idRegex . x . toString ( ) ,
338
- constants . idRegex . y . toString ( )
338
+ constants . idRegex . y . toString ( ) ,
339
+ false
339
340
] ,
340
341
editType : 'plot' ,
341
342
description : [
@@ -353,7 +354,12 @@ module.exports = {
353
354
'and the last constraint encountered will be ignored to avoid possible' ,
354
355
'inconsistent constraints via `scaleratio`.' ,
355
356
'Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint' ,
356
- 'is currently forbidden.'
357
+ 'is currently forbidden.' ,
358
+ 'Setting `false` allows to remove a default constraint (occasionally,' ,
359
+ 'you may need to prevent a default `scaleanchor` constraint from' ,
360
+ 'being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}`' ,
361
+ 'is set automatically in order for pixels to be rendered as squares,' ,
362
+ 'setting `yaxis: {scaleanchor: false}` allows to remove the constraint).'
357
363
] . join ( ' ' )
358
364
} ,
359
365
scaleratio : {
0 commit comments