Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d80ae2

Browse files
committed
unscale scatterlayer points (not all points) on drag
1 parent 32ccae5 commit 9d80ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/dragbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ module.exports = function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
712712
// This is specifically directed at scatter traces, applying an inverse
713713
// scale to individual points to counteract the scale of the trace
714714
// as a whole:
715-
.selectAll('.points').selectAll('.point')
715+
.select('.scatterlayer').selectAll('.points').selectAll('.point')
716716
.call(Drawing.setPointGroupScale, 1 / xScaleFactor, 1 / yScaleFactor);
717717
}
718718
}

0 commit comments

Comments
 (0)