plotly / plotly/plotly.js

[BUG]: Box/Lasso select stops working and makes page freeze after adjusting previously selected range

Open
#8,007 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P2 size: 3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Description

The box/lasso select function stop working after adjusting previously selected range.

Screenshots/Video

https://github.com/user-attachments/assets/0626a7ee-dfce-45e6-aa79-d9b0f1df04fc

Steps to reproduce
  • Go to this page: https://plotly.com/javascript/lasso-selection/
  • Plat with the example, select Box select or Lasso select
  • Select a range first, and then adjust the range again
  • Open the devtool and you will see infinite logs coming out and will make the page freeze.
Note

The example uses plotly v3, I replaced it with v4, the issue persists.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on the Plotly lasso-selection example at https://plotly.com/javascript/lasso-selection/ with the browser devtools open. Select a range, adjust it, and compare the behavior in the referenced Plotly versions. Done means adjusting an existing box or lasso selection no longer produces infinite logs or freezes the page.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.