Title: [BUG]: `scatter` and `scattergl` show different hover labels for overlapping data points · Issue #8077 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: `scatter` and `scattergl` show different hover labels for overlapping data points · Issue #8077 · plotly/plotly.js
X Title: [BUG]: `scatter` and `scattergl` show different hover labels for overlapping data points · Issue #8077 · plotly/plotly.js
Description: Description When two traces have data points at exactly the same position, scatter and scattergl select different traces for the hover label. In this example, both traces A and B have a point at (1, 0), with A added first and B added sec...
Open Graph Description: Description When two traces have data points at exactly the same position, scatter and scattergl select different traces for the hover label. In this example, both traces A and B have a point at (1...
X Description: Description When two traces have data points at exactly the same position, scatter and scattergl select different traces for the hover label. In this example, both traces A and B have a point at (1...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8077
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `scatter` and `scattergl` show different hover labels for overlapping data points","articleBody":"### Description\n\nWhen two traces have data points at exactly the same position, `scatter` and `scattergl` select different traces for the hover label.\n\nIn this example, both traces `A` and `B` have a point at `(1, 0)`, with `A` added first and `B` added second.\n\nWith `scatter`, hovering the point shows the hover label for **B** (Correct).\n\nWith `scattergl`, hovering the same point shows the hover label for **A**, even though the traces and their order are otherwise identical.\n\nI would expect `scatter` and `scattergl` to behave consistently when resolving overlapping points.\n\n### Reproducible example: \n\nhttps://codepen.io/Lexachoc/pen/ogZWJKe\n\nFor `scatter` case:\n\n\u003cimg width=\"746\" height=\"474\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ac500cfc-3053-42b3-bfb6-4b18501c0ea4\" />\n\nWhen moving even closer to marker center, label A will then show:\n\n\u003cimg width=\"722\" height=\"470\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/41a45c5e-d132-42f7-9960-a2275fbc58cf\" />\n\nFor `scattergl` case, it always shows label A:\n\n\u003cimg width=\"720\" height=\"438\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f2841026-d691-4f29-ad0d-800bea96ed94\" />\n\n","author":{"url":"https://github.com/Lexachoc","@type":"Person","name":"Lexachoc"},"datePublished":"2026-09-24T23:14:11Z","url":"https://github.com/plotly/plotly.js/issues/8077"}
| 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:c08fdb57-186f-dc22-b9a3-c4233a10d914 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC22:1D20B7:22D7DC2:2C2E60A:6B01B4EE |
| html-safe-nonce | 8f56062ffc4096ea731dfa93449829ff7f672d343d0a80108e083799fa29ded0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzIyOjFEMjBCNzoyMkQ3REMyOjJDMkU2MEE6NkIwMUI0RUUiLCJ2aXNpdG9yX2lkIjoiNTYzMzQ1NzIxMDkzMjcwNDQ5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 145458785f7c90bbe0239e6504981008aaef5717e20fa115f5d3ec90032f4283 |
| hovercard-subject-tag | issue:5575750576 |
| 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/8077/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b185c6e69ef61ecbab3e4e272ee7b802cca4bbf15e35618cebef23ef0be75b7a/plotly/plotly.js/issues/8077 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b185c6e69ef61ecbab3e4e272ee7b802cca4bbf15e35618cebef23ef0be75b7a/plotly/plotly.js/issues/8077 |
| og:image:alt | Description When two traces have data points at exactly the same position, scatter and scattergl select different traces for the hover label. In this example, both traces A and B have a point at (1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lexachoc |
| 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