Title: [BUG]: `axis.layer` / `axis.zerolinelayer`: `'above traces'` do not render above `scattergl` traces · Issue #8075 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: `axis.layer` / `axis.zerolinelayer`: `'above traces'` do not render above `scattergl` traces · Issue #8075 · plotly/plotly.js
X Title: [BUG]: `axis.layer` / `axis.zerolinelayer`: `'above traces'` do not render above `scattergl` traces · Issue #8075 · plotly/plotly.js
Description: Description: For Cartesian axes/subplots (for example, those containing scatter traces), the reference documentation states that: layer Parent: layout.xaxis Type: enumerated , one of ( "above traces" | "below traces" ) Default: "above tr...
Open Graph Description: Description: For Cartesian axes/subplots (for example, those containing scatter traces), the reference documentation states that: layer Parent: layout.xaxis Type: enumerated , one of ( "above trace...
X Description: Description: For Cartesian axes/subplots (for example, those containing scatter traces), the reference documentation states that: layer Parent: layout.xaxis Type: enumerated , one of ( "above ...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8075
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `axis.layer` / `axis.zerolinelayer`: `'above traces'` do not render above `scattergl` traces","articleBody":"### Description:\n\nFor Cartesian axes/subplots (for example, those containing `scatter` traces),\nthe reference documentation states that:\n\n[layer](https://plotly.com/javascript/reference/layout/xaxis/#layout-xaxis-layer)\n\n> Parent: layout.xaxis\n> Type: enumerated , one of ( \"above traces\" | \"below traces\" )\n> Default: \"above traces\"\n> Sets the layer on which this axis is displayed. If \"above traces\", this axis is displayed above all the subplot's traces If \"below traces\", this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to \"false\" to show markers and/or text nodes above this axis.\n\n[zerolinelayer](https://plotly.com/javascript/reference/layout/xaxis/#layout-xaxis-zerolinelayer)\n\n> Parent: layout.xaxis\n> Type: enumerated , one of ( \"above traces\" | \"below traces\" )\n> Default: \"below traces\"\n> Sets the layer on which this zeroline is displayed. If \"above traces\", this zeroline is displayed above all the subplot's traces If \"below traces\", this zeroline is displayed below all the subplot's traces, but above the grid lines. Limitation: \"zerolinelayer\" currently has no effect if the \"zorder\" property is set on any trace.\n\nHowever, this does not work for `scattergl`. \n\nA WebGL marker remains visually above the zeroline (`y = 0`) even when:\n\n```js\nyaxis: {\n zerolinelayer: 'above traces'\n}\n```\nis set.\n\n### Reproducible example: \n\nhttps://codepen.io/Lexachoc/pen/xbqdWqm\n\nhttps://codepen.io/Lexachoc/pen/EaWmLKY (line chart)\n\n---\n\n### Relationship to `cliponaxis`:\n\nThis is separate from the feature request in #8074.\n\n`cliponaxis` controls whether markers/text are clipped to the subplot's plotting area.\n\n`axis.layer` / `axis.zerolinelayer`, on the other hand, control the stacking order of the axis / zeroline relative to traces.\n\nEffect of `axis.layer` / `axis.zerolinelayer`: `'above traces'`:\n\u003cimg width=\"1932\" height=\"1042\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4e33ccb2-19c2-49b2-ba42-527fa6a364c9\" />\n\nEffect of `axis.layer` / `axis.zerolinelayer`: `'above traces'` **for line chart** (the red line should not be seen):\n\n\u003cimg width=\"1932\" height=\"1022\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ee6a2746-1bf1-477e-9cd4-823111c9919f\" />\n\nEffect of `cliponaxis: false`:\n\u003cimg width=\"1932\" height=\"1044\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/fa851793-0ffa-4ef7-a2bc-39e90356ebe5\" />","author":{"url":"https://github.com/Lexachoc","@type":"Person","name":"Lexachoc"},"datePublished":"2026-09-24T12:55:46Z","url":"https://github.com/plotly/plotly.js/issues/8075"}
| 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:063f6ad5-0a28-cc2c-67d0-6764140bdf1f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA04:2D2F2F:31506F9:3EEB9DB:6B01C110 |
| html-safe-nonce | 99b2962f2e44f66a46d90943f4ae8cb868c8c87e283620f1b0dbde4e095ad29f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTA0OjJEMkYyRjozMTUwNkY5OjNFRUI5REI6NkIwMUMxMTAiLCJ2aXNpdG9yX2lkIjoiODMxMjIxMDQ2Nzg1ODc5MjcyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b7d6e43b2d41ce8740d4c87d659a5c718cad51f2e892721000858013e6291d86 |
| hovercard-subject-tag | issue:5568643307 |
| 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/8075/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b994409407279d158cd3b164f0a17af5645910997be8dbc8af558426a7b51e24/plotly/plotly.js/issues/8075 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b994409407279d158cd3b164f0a17af5645910997be8dbc8af558426a7b51e24/plotly/plotly.js/issues/8075 |
| og:image:alt | Description: For Cartesian axes/subplots (for example, those containing scatter traces), the reference documentation states that: layer Parent: layout.xaxis Type: enumerated , one of ( "above trace... |
| 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