We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faccfc6 commit 7776305Copy full SHA for 7776305
3 files changed
src/plots/cartesian/axis_defaults.js
@@ -103,6 +103,7 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
103
// validate range and set autorange true for invalid partial ranges
104
if(range && (
105
(range[0] === null && range[1] === null) ||
106
+ ((range[0] === null || range[1] === null) && autorange === 'reversed') ||
107
(range[0] !== null && (autorange === 'min' || autorange === 'max reversed')) ||
108
(range[1] !== null && (autorange === 'max' || autorange === 'min reversed'))
109
)) {
src/plots/polar/layout_defaults.js
@@ -88,6 +88,7 @@ function handleDefaults(contIn, contOut, coerce, opts) {
88
89
90
91
92
93
94
test/jasmine/tests/axes_test.js
@@ -727,9 +727,11 @@ describe('Test axes', function() {
727
yaxis5: { range: [null, 2], autorange: 'max' }, // first range is null not second
728
yaxis6: { range: [1, null], autorange: 'max reversed' }, // second range is null not first
729
yaxis7: { range: [null, 2], autorange: 'min reversed' }, // first range is null not second
730
+ yaxis8: { range: [1, null], autorange: 'reversed' },
731
+ yaxis9: { range: [null, 2], autorange: 'reversed' },
732
};
- layoutOut._subplots.cartesian.push('x2y2', 'xy3', 'x3y4', 'x3y5', 'x3y6', 'x3y7');
- layoutOut._subplots.yaxis.push('x2', 'x3', 'y2', 'y3', 'y4', 'y5', 'y6', 'y7');
733
+ layoutOut._subplots.cartesian.push('x2y2', 'xy3', 'x3y4', 'x3y5', 'x3y6', 'x3y7', 'x3y9', 'x3y9');
734
+ layoutOut._subplots.yaxis.push('x2', 'x3', 'y2', 'y3', 'y4', 'y5', 'y6', 'y7', 'y8', 'y9');
735
736
supplyLayoutDefaults(layoutIn, layoutOut, fullData);
737
0 commit comments