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 086282c commit 699fb78Copy full SHA for 699fb78
src/plots/cartesian/set_convert.js
@@ -486,6 +486,9 @@ module.exports = function setConvert(ax, fullLayout) {
486
return;
487
}
488
489
+ var nullRange0 = range[0] === null;
490
+ var nullRange1 = range[1] === null;
491
+
492
if(ax.type === 'date' && !ax.autorange) {
493
// check if milliseconds or js date objects are provided for range
494
// and convert to date strings
@@ -510,7 +513,7 @@ module.exports = function setConvert(ax, fullLayout) {
510
513
511
514
} else {
512
515
if(!isNumeric(range[i])) {
- if(isNumeric(range[1 - i])) {
516
+ if(!(nullRange0 || nullRange1) && isNumeric(range[1 - i])) {
517
range[i] = range[1 - i] * (i ? 10 : 0.1);
518
519
ax[rangeAttr] = dflt;
0 commit comments