Skip to content

Commit 00fd1d7

Browse files
Coerce of new attributes is only made for y axis
1 parent 3dd91b5 commit 00fd1d7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/plots/cartesian/axis_defaults.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,13 @@ module.exports = function handleAxisDefaults(containerIn, containerOut, coerce,
5454
coerce('range');
5555
containerOut.cleanRange();
5656

57-
coerce('rangeslidermode', containerIn.rangesliderrange ?
58-
containerOut.isValidRange(containerIn.rangesliderrange) : 'auto');
57+
if(letter === 'y') {
58+
coerce('rangeslidermode', containerIn.rangesliderrange ?
59+
containerOut.isValidRange(containerIn.rangesliderrange) : 'auto');
5960

60-
coerce('rangesliderrange');
61-
containerOut.cleanRange('rangesliderrange');
61+
coerce('rangesliderrange');
62+
containerOut.cleanRange('rangesliderrange');
63+
}
6264

6365
handleCategoryOrderDefaults(containerIn, containerOut, coerce);
6466
containerOut._initialCategories = axType === 'category' ?

0 commit comments

Comments
 (0)