When the scatterplot is within an element with some margin/padding to the top and the page is scrollable, then the lasso was misplaced. This has to do that the lasso being drawn relative to the canvas and not to the window. Removing window.scrollX/Y lets the lasso be drawn regardless of how far you have scrolled
When the scatterplot is within an element with some margin/padding to the top and the page is scrollable, then the lasso was misplaced. This has to do that the lasso being drawn relative to the canvas and not to the window. Removing window.scrollX/Y lets the lasso be drawn regardless of how far you have scrolled