GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix slow scattergl hover by emilykl · Pull Request #7998 · plotly/plotly.js

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).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
emilykl added 2 commits August 30, 2026 14:47
@emilykl
add check before searching all points for drawing spikelines (perform…
b8a2938
…ance fix)
@emilykl
add tests
0a69fa1
@Lexachoc

Lexachoc commented Sep 10, 2026

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):

plotly.js/src/components/fx/hover.js

Line 676 in 0a69fa1

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

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Lexachoc Lexachoc mentioned this pull request Sep 11, 2026
[BUG]: scattergl hover freezes with more than 100.000 points all with different x but same y #8036
Closed
@emilykl emilykl mentioned this pull request Sep 17, 2026
Fix scattergl plot freezing up on hover #8052
Merged
@emilykl

emilykl commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #8052

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

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

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@emilykl @Lexachoc
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.