Title: [BUG]: `scattergl` hover is slow above 100k points · Issue #8134 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: `scattergl` hover is slow above 100k points · Issue #8134 · plotly/plotly.js
X Title: [BUG]: `scattergl` hover is slow above 100k points · Issue #8134 · plotly/plotly.js
Description: Description With 100,000 or more points, hovering over a scattergl trace is much slower than with 99,999 points. Steps to reproduce Open Plotly devtools and paste the following into the browser devtools console: let n = 100000; Plotly.ne...
Open Graph Description: Description With 100,000 or more points, hovering over a scattergl trace is much slower than with 99,999 points. Steps to reproduce Open Plotly devtools and paste the following into the browser dev...
X Description: Description With 100,000 or more points, hovering over a scattergl trace is much slower than with 99,999 points. Steps to reproduce Open Plotly devtools and paste the following into the browser dev...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8134
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `scattergl` hover is slow above 100k points","articleBody":"### Description\n\nWith 100,000 or more points, hovering over a `scattergl` trace is much slower than with 99,999 points.\n\n### Steps to reproduce\n\n- Open Plotly devtools and paste the following into the browser devtools console:\n```js\nlet n = 100000;\n\nPlotly.newPlot('graph', [{\n type: 'scattergl',\n mode: 'markers',\n x0: 0,\n dx: 1,\n y: Array(n).fill(0)\n}]);\n```\n- Hover over individual points and note the lag\n- Change `n` to `99999` and note that hover is fast\n\n### Notes\n\n- At `TOO_MANY_POINTS` (`src/traces/scattergl/constants.ts`), `scattergl` switches from a plain array to the point-cluster tree\n- The slow call is `.range()` in `src/traces/scattergl/hover.js`\n- It's very slow with infinite bounds; it also seems slower than a plain array scan when the bounds cover a large share of the points\n- Either `hover.js` calls `.range()` in a non-optimal way, or `plotly/point-cluster` has a performance bug\n- #8052 stops the plot from freezing, but hover is still laggy\n- Also related to #8036","author":{"url":"https://github.com/camdecoster","@type":"Person","name":"camdecoster"},"datePublished":"2026-10-20T21:55:29Z","url":"https://github.com/plotly/plotly.js/issues/8134"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d4b58212-b89b-f841-e00f-4f4da7a5e37b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8784:36A3E:26326D6:32F7023:6B01AB3F |
| html-safe-nonce | 9c0c57344fae0d28a4ec9c41632fc706f73a66c4599b774fd88c2e07ee77e7b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Nzg0OjM2QTNFOjI2MzI2RDY6MzJGNzAyMzo2QjAxQUIzRiIsInZpc2l0b3JfaWQiOiI0MTczMDUxMjEwODI5NTA3MzkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dc12c99a006155c686494e8ece88aaff902df6334e38122ff44b9b13792be68c |
| hovercard-subject-tag | issue:5950295670 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/8134/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98185909ac03ba2535f989238016a046c07201c8a375ed43cf917be44d48dfd2/plotly/plotly.js/issues/8134 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98185909ac03ba2535f989238016a046c07201c8a375ed43cf917be44d48dfd2/plotly/plotly.js/issues/8134 |
| og:image:alt | Description With 100,000 or more points, hovering over a scattergl trace is much slower than with 99,999 points. Steps to reproduce Open Plotly devtools and paste the following into the browser dev... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | camdecoster |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width