Title: [BUG]: `scatterpolargl` drops points between 10000 and 100000 points · Issue #8148 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: `scatterpolargl` drops points between 10000 and 100000 points · Issue #8148 · plotly/plotly.js
X Title: [BUG]: `scatterpolargl` drops points between 10000 and 100000 points · Issue #8148 · plotly/plotly.js
Description: Description scatterpolargl does not set opts.marker.snap as scattergl does. This limits how many markers are displayed at certain zoom levels due to how regl-scatter2d handles rendering with its default snap value (10000). See #4323. Scr...
Open Graph Description: Description scatterpolargl does not set opts.marker.snap as scattergl does. This limits how many markers are displayed at certain zoom levels due to how regl-scatter2d handles rendering with its de...
X Description: Description scatterpolargl does not set opts.marker.snap as scattergl does. This limits how many markers are displayed at certain zoom levels due to how regl-scatter2d handles rendering with its de...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8148
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `scatterpolargl` drops points between 10000 and 100000 points","articleBody":"### Description\n\n`scatterpolargl` does not set `opts.marker.snap` as `scattergl` does. This limits how many markers are displayed at certain zoom levels due to how regl-scatter2d handles rendering with its default `snap` value (10000). See #4323.\n\n### Screenshots\n\n`scatterpolargl` vs. `scattergl` with the same data:\n\n\u003cimg width=\"1140\" height=\"630\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6f8c3bee-75d7-46da-87be-d2fad279a372\" />\n\n### Steps to reproduce\n\n- Open Plotly devtools and paste the following into the browser devtools console:\n```js\nconst n = 90000;\nconst gauss = () => (Math.random() + Math.random() + Math.random() + Math.random() - 2) / 2;\n\nconst x = [];\nconst y = [];\nconst r = [];\nconst theta = [];\nfor (let i = 0; i \u003c n; i++) {\n const px = 0.05 * gauss();\n const py = 0.05 * gauss();\n x.push(px);\n y.push(py);\n r.push(Math.hypot(px, py));\n theta.push(Math.atan2(py, px) * 180 / Math.PI);\n}\n\nconst marker = {color: 'rgba(0,0,255,0.01)', size: 3};\n\nPlotly.newPlot(gd, [\n {type: 'scatterpolargl', mode: 'markers', r, theta, marker, subplot: 'polar'},\n {type: 'scattergl', mode: 'markers', x, y, marker, xaxis: 'x', yaxis: 'y'}\n], {\n width: 760,\n height: 420,\n showlegend: false,\n polar: {domain: {x: [0, 0.45]}},\n xaxis: {domain: [0.58, 1], anchor: 'y'},\n yaxis: {domain: [0.1, 0.9], anchor: 'x', scaleanchor: 'x'}\n});\n```\n- Note that the `scatterpolargl` plot is pale compared to `scattergl`\n\n### Notes\n\n- For a `scatterpolargl` trace with more than 10000 points, regl-scatter2d builds its own cluster tree. It then draws only the level-of-detail subset of points. The same data on `scattergl` draws every point.\n- `scattergl` had this bug but it got fixed in #4323\n- The same fix can be applied to this trace: set `opts.marker.snap = len` after `convert.style` in `src/traces/scatterpolargl/calc.js`","author":{"url":"https://github.com/camdecoster","@type":"Person","name":"camdecoster"},"datePublished":"2026-10-27T02:29:15Z","url":"https://github.com/plotly/plotly.js/issues/8148"}
| 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:f62e6523-14d9-c88b-29a2-7ee7dd28b804 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A82:2F9718:2506922:31A7963:6B01AD5F |
| html-safe-nonce | 7989c8e70b092f46038825dab6e5546ee1d6d9afa9e11a62031c7f52eae97dd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTgyOjJGOTcxODoyNTA2OTIyOjMxQTc5NjM6NkIwMUFENUYiLCJ2aXNpdG9yX2lkIjoiNDQxMTkxODkxNzk2MjkzNTY0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 981bd5151602941433e858aaa22ee80d9a0993c87198603ece2c670f9e37ea49 |
| hovercard-subject-tag | issue:6051768575 |
| 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/8148/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9680d7879cc5a5a7128cb3b9ad3a36f2579b7186cafeb749583f39031184117a/plotly/plotly.js/issues/8148 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9680d7879cc5a5a7128cb3b9ad3a36f2579b7186cafeb749583f39031184117a/plotly/plotly.js/issues/8148 |
| og:image:alt | Description scatterpolargl does not set opts.marker.snap as scattergl does. This limits how many markers are displayed at certain zoom levels due to how regl-scatter2d handles rendering with its de... |
| 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