Thanks to visit codestin.com Credit goes to github.com
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 ce2e206 commit 18099aeCopy full SHA for 18099ae
src/plots/cartesian/set_convert.js
@@ -570,15 +570,9 @@ module.exports = function setConvert(ax, fullLayout) {
570
if(rl0 > rl1) flip = !flip;
571
if(flip) ax._rangebreaks.reverse();
572
var sign = flip ? -1 : 1;
573
- ax._m2 = sign * ax._length / (Math.abs(rl1 - rl0) - ax._lBreaks);
574
-
575
- if(isY) {
576
- // N.B. top to bottom (negative coord, positive px direction)
577
- ax._B.push(-ax._m2 * rl1);
578
- } else {
579
- ax._B.push(-ax._m2 * rl0);
580
- }
581
+ ax._m2 = sign * ax._length / (Math.abs(rl1 - rl0) - ax._lBreaks);
+ ax._B.push(-ax._m2 * (isY ? rl1 : rl0));
582
for(i = 0; i < ax._rangebreaks.length; i++) {
583
brk = ax._rangebreaks[i];
584
ax._B.push(
0 commit comments