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 11c8ea2 commit 063632dCopy full SHA for 063632d
src/plots/cartesian/set_convert.js
@@ -222,7 +222,10 @@ module.exports = function setConvert(ax, fullLayout) {
222
break;
223
}
224
225
- return _l2p(v, (isY ? -1 : 1) * ax._m2, ax._B[q]);
+ var b2 = ax._B[q] || 0;
226
+ if(!isFinite(b2)) return 0; // avoid NaN translate e.g. in positionLabels if one keep zooming exactly into a break
227
+
228
+ return _l2p(v, (isY ? -1 : 1) * ax._m2, b2);
229
};
230
231
p2l = function(px) {
@@ -242,8 +245,8 @@ module.exports = function setConvert(ax, fullLayout) {
242
245
if(pos < brk.pmin) break;
243
246
if(pos > brk.pmax) q = nextI;
244
247
-
- return _p2l(px, (isY ? -1 : 1) * ax._m2, ax._B[q]);
248
+ var b2 = ax._B[q];
249
+ return _p2l(px, (isY ? -1 : 1) * ax._m2, b2);
250
251
252
0 commit comments