Title: [BUG]: Text labels are drawn in the range slider · Issue #8118 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: Text labels are drawn in the range slider · Issue #8118 · plotly/plotly.js
X Title: [BUG]: Text labels are drawn in the range slider · Issue #8118 · plotly/plotly.js
Description: Description A scatter trace whose mode includes text draws its labels in the range slider as well as in the main plot. Screenshots/Video Steps to reproduce Open Plotly devtools and paste the following into the browser devtools console: P...
Open Graph Description: Description A scatter trace whose mode includes text draws its labels in the range slider as well as in the main plot. Screenshots/Video Steps to reproduce Open Plotly devtools and paste the follow...
X Description: Description A scatter trace whose mode includes text draws its labels in the range slider as well as in the main plot. Screenshots/Video Steps to reproduce Open Plotly devtools and paste the follow...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8118
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: Text labels are drawn in the range slider","articleBody":"### Description\n\nA scatter trace whose `mode` includes `text` draws its labels in the range slider as well as in the main plot.\n\n### Screenshots/Video\n\n\u003cimg width=\"1400\" height=\"800\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7aa928b2-45d9-499a-b8d8-7482f044c657\" />\n\n### Steps to reproduce\n\n- Open Plotly devtools and paste the following into the browser devtools console:\n```js\nPlotly.newPlot(gd, {\n data: [\n {\n mode: 'lines+markers+text',\n textposition: 'top center',\n x: [1, 2, 3, 4, 5, 6, 7, 8],\n y: [3, 5, 2, 6, 4, 7, 3, 5],\n text: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']\n }\n ],\n layout: {\n width: 700,\n height: 400,\n showlegend: false,\n xaxis: { rangeslider: { visible: true } }\n }\n});\n```\n- Note that the text labels from the plot are visible in the range slider\n\n### Notes\n\n- The labels in the slider are compressed and don't seem to add much value\n- Nothing in the slider's code handles text, and no test or baseline covers it\n- The labels appear because `Cartesian.rangePlot` runs each trace module's full plot routine, including rendering the text labels\n- In the event that the plot only includes the text labels (`mode: 'text'`), how should the text labels be handled?\n - Without including them in the slider, the slider would be blank\n - I think we should keep the labels in this case\n- This was discovered when working on #8065. The auto labels that get added in that PR branch will be omitted from the slider.","author":{"url":"https://github.com/camdecoster","@type":"Person","name":"camdecoster"},"datePublished":"2026-10-13T20:47:37Z","url":"https://github.com/plotly/plotly.js/issues/8118"}
| 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:1586f2b7-eec9-0b7e-2313-52244127550a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E6C:3A73AA:212E2F7:2A0E3E2:6B01B01C |
| html-safe-nonce | 40da4b062e31d59f611ccfa740ae431085ba6db7645b34e55991ea431ce27333 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTZDOjNBNzNBQToyMTJFMkY3OjJBMEUzRTI6NkIwMUIwMUMiLCJ2aXNpdG9yX2lkIjoiMzM2MTcwMDkwMDQyNjA2Nzk5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c6c385c9e9ed4acd90b1616d0c27e1e0a42358a76c7519cd22803bb0d207121f |
| hovercard-subject-tag | issue:5837488464 |
| 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/8118/issue_layout |
| twitter:image | https://opengraph.githubassets.com/907c4dc8eebd8856be94de847a6a1514f35d825289b7fbb3ec10fa109b1d6f49/plotly/plotly.js/issues/8118 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/907c4dc8eebd8856be94de847a6a1514f35d825289b7fbb3ec10fa109b1d6f49/plotly/plotly.js/issues/8118 |
| og:image:alt | Description A scatter trace whose mode includes text draws its labels in the range slider as well as in the main plot. Screenshots/Video Steps to reproduce Open Plotly devtools and paste the follow... |
| 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