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 a7c4485 commit 5da2778Copy full SHA for 5da2778
1 file changed
src/plots/cartesian/position_defaults.js
@@ -72,6 +72,10 @@ module.exports = function handlePositionDefaults(containerIn, containerOut, coer
72
// in the axes popover to hide domain for the overlaying axis.
73
// perhaps I should make a private version _domain that all axes get???
74
var domain = coerce('domain', dfltDomain);
75
+
76
+ // according to https://www.npmjs.com/package/canvas-size
77
+ // the minimum value of max canvas width across browsers and devices is 4096
78
+ // which applied in the calculation below:
79
if(domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain;
80
Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain);
81
}
0 commit comments