Title: [BUG]: `scattergl` text is hidden behind selected markers · Issue #8081 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: `scattergl` text is hidden behind selected markers · Issue #8081 · plotly/plotly.js
X Title: [BUG]: `scattergl` text is hidden behind selected markers · Issue #8081 · plotly/plotly.js
Description: Description scattergl text is hidden behind selected markers The equivalent scatter trace renders the text correctly. Reproducible example: https://codepen.io/Lexachoc/pen/dPvRydx mode: "markers+text", texttemplate: "x=%{x}", selectedpoi...
Open Graph Description: Description scattergl text is hidden behind selected markers The equivalent scatter trace renders the text correctly. Reproducible example: https://codepen.io/Lexachoc/pen/dPvRydx mode: "markers+te...
X Description: Description scattergl text is hidden behind selected markers The equivalent scatter trace renders the text correctly. Reproducible example: https://codepen.io/Lexachoc/pen/dPvRydx mode: "marke...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8081
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `scattergl` text is hidden behind selected markers","articleBody":"### Description\n\n`scattergl` text is hidden behind selected markers\n\nThe equivalent `scatter` trace renders the text correctly.\n\n### Reproducible example: \nhttps://codepen.io/Lexachoc/pen/dPvRydx\n\n```js\n mode: \"markers+text\",\n texttemplate: \"x=%{x}\",\n selectedpoints: [0],\n selected: {\n textfont: { color: \"red\" }\n },\n unselected: {\n textfont: {color: 'white'}\n },\n```\n\n\u003cimg width=\"1574\" height=\"613\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/eb4de90c-0bf1-4031-ae5e-bc4abf4acbe1\" />\n\n---\n\nFor `unselect.textfont`, both works, only `select.textfont` is broken for `scattergl`:\n\n\u003cimg width=\"1574\" height=\"613\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/87bd1ba0-7445-4e4e-9a56-c0712ce5402e\" />\n\n### Note\n\nTo confirm, uncomment\n```js\ntextposition: 'top-center',\n```\n\n\u003cimg width=\"1574\" height=\"613\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/bd8bf5ee-89de-4bc8-ba01-a0e6e6514f16\" />\n\n\n## Additional warning observed\n\nWhen using:\n```js\n mode: \"markers+text\",\n```\nor\n```js\n mode: \"text\",\n```\n\n`scattergl` will throw this warning:\n\n> Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently\n\ncaused by this line: `var bottomPx = firstTop(ctx2.getImageData(0, 0, l2, l2));` from the vendor package.\n\nReported before in https://github.com/plotly/plotly.js/issues/7285","author":{"url":"https://github.com/Lexachoc","@type":"Person","name":"Lexachoc"},"datePublished":"2026-09-25T16:40:35Z","url":"https://github.com/plotly/plotly.js/issues/8081"}
| 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:8780c40c-33b9-af73-18a9-7994c71d1c23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A986:28A483:B2C43B:ED2F74:6B01C121 |
| html-safe-nonce | a831dacc4bca628d8b15b163ce27949251bf5cc0a271a257bf6be41d675e9e50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTg2OjI4QTQ4MzpCMkM0M0I6RUQyRjc0OjZCMDFDMTIxIiwidmlzaXRvcl9pZCI6Ijc0MzMzODExNzc5MjEyMTEyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0aed1473f4e3c69beb780bd261658a7c5b7f70021100021a4d3b3a310bcaf29d |
| hovercard-subject-tag | issue:5585677264 |
| 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/8081/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de101d78dbf6c90a735863fdc42f98a873f3b497cd654215ea0e6bd5e150dc1c/plotly/plotly.js/issues/8081 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de101d78dbf6c90a735863fdc42f98a873f3b497cd654215ea0e6bd5e150dc1c/plotly/plotly.js/issues/8081 |
| og:image:alt | Description scattergl text is hidden behind selected markers The equivalent scatter trace renders the text correctly. Reproducible example: https://codepen.io/Lexachoc/pen/dPvRydx mode: "markers+te... |
| 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