How do I maintain multiple selections at the same time?


Please see this codepen example of a plotly.js scatter plot with lasso selection ability. If you try the lasso, you will find that you can select a collection of points within your lasso, but then if you try to select a second collection of points with another lasso, the first collection is unselected/unhighlighted. Is there a way to preserve the first selection while creating other selections?


Hi @gibran.shah try pushing the shift key while selecting for the second time.

Ah, that works! Thanks again AIMPED!