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 e778644 commit 9695f36Copy full SHA for 9695f36
src/components/rangeslider/draw.js
@@ -99,6 +99,15 @@ module.exports = function(gd) {
99
];
100
}
101
102
+ // make sure the slider's axis range (axRng) doesn't go above the
103
+ // axis max or below the axis min (rng)
104
+ if(axRng[1] > rng[1]) {
105
+ newRng[1] = rng[1];
106
+ }
107
+ if(axRng[0] < rng[0]) {
108
+ newRng[0] = rng[0];
109
110
+
111
opts.range = opts._input.range = Lib.simpleMap(newRng, axisOpts.l2r);
112
113
0 commit comments