Skip to content

Fix slow scattergl hover - #7998

Closed
emilykl wants to merge 2 commits into
mainfrom
fix-slow-scattergl-hover
Closed

emilykl wants to merge 2 commits into
mainfrom
fix-slow-scattergl-hover

Conversation

@emilykl

@emilykl emilykl commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Closes #5927, closes #5790

Fixes performance issue where scattergl plots were performing an expensive operation searching all points on hover by default.

The impact is severe for plots with many points (say, >100k; see linked issues for details).

@Lexachoc

Copy link
Copy Markdown
Contributor

Hi, I may submit PRs for #7972 (spikelines for ternary plots) and #7058 (new scatterternarygl trace) recently.

Both may overlap with the hover/spikeline logic changed here, especially this line (depending on my implementations):

if (hasCartesian && spikedistance !== 0 && canSpikeToClosest(pointData)) {

Just wanted to flag the connection so I can account for these changes.

@emilykl

emilykl commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #8052

@emilykl emilykl closed this Sep 17, 2026
@emilykl

emilykl commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @Lexachoc for the heads-up!

I've posted a more finalized version of this PR in #8052, feel free to take a look. If the PR is accepted, you could incorporate the changes into #8041.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scattergl plot is sometimes slow to interact with even with moderate number of points Performance Issues with large data sets since 2.x.x

2 participants