Title: Shapes are always on top (foreground) · Issue #370 · plotly/plotly.R · GitHub
Open Graph Title: Shapes are always on top (foreground) · Issue #370 · plotly/plotly.R
X Title: Shapes are always on top (foreground) · Issue #370 · plotly/plotly.R
Description: When one adds a trace to an existing plot, it will be drawn on top of earlier defined traces. However, when one adds a shape, it will always be on top of everything else. Example: library(plotly) p <- plot_ly(economics, x = date, y = uem...
Open Graph Description: When one adds a trace to an existing plot, it will be drawn on top of earlier defined traces. However, when one adds a shape, it will always be on top of everything else. Example: library(plotly) p...
X Description: When one adds a trace to an existing plot, it will be drawn on top of earlier defined traces. However, when one adds a shape, it will always be on top of everything else. Example: library(plotly) p...
Opengraph URL: https://github.com/plotly/plotly.R/issues/370
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Shapes are always on top (foreground)","articleBody":"When one adds a trace to an existing plot, it will be drawn on top of earlier defined traces. However, when one adds a shape, it will always be on top of everything else. Example:\n\n``` R\nlibrary(plotly)\np \u003c- plot_ly(economics, x = date, y = uempmed, name = \"unemployment\",line=list(color=\"yellow\"))\n\np \u003c- layout(p, title = 'Highlighting with Rectangles', \n shapes = list(\n list(type = \"rect\", \n fillcolor = \"blue\", line = list(color = \"blue\"), opacity = 0.5, \n x0 = \"1980-01-01\", x1 = \"1985-01-01\", xref = \"x\", \n y0 = 4, y1 = 12.5, yref = \"y\"))) \n\np # Shapes are in front of the line\np \u003c- add_trace(economics, x = date, y = uempmed, name = \"unemployment\",line=list(color=\"white\"))\np # Shapes are still in front of the line\n\n```\n\nIs this intended or unwanted behaviour? \n\nUsing plotly_2.0.18.\n","author":{"url":"https://github.com/zerweck","@type":"Person","name":"zerweck"},"datePublished":"2015-12-23T14:30:42Z","url":"https://github.com/plotly/plotly.R/issues/370"}
| 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:53d869f3-09cc-b41a-8a37-6b017895b660 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8562:21BD98:406BC17:517B905:6B0252AF |
| html-safe-nonce | 71ab8d26ef91a9b20f24578cdf98914cd98720330aebf18c67a51ba5ebc02204 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTYyOjIxQkQ5ODo0MDZCQzE3OjUxN0I5MDU6NkIwMjUyQUYiLCJ2aXNpdG9yX2lkIjoiMzMxMTg0NTY1ODc4ODUxNjUyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 07543b6810e93ec84797b86a7e202162f43f3e20aa97a970ce4df77886769ed2 |
| hovercard-subject-tag | issue:123668768 |
| 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.R/370/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0238bd5875cb51b7bb14035cd07cc6794ef404b5fbeebfa08c7663bf12ddc388/plotly/plotly.R/issues/370 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0238bd5875cb51b7bb14035cd07cc6794ef404b5fbeebfa08c7663bf12ddc388/plotly/plotly.R/issues/370 |
| og:image:alt | When one adds a trace to an existing plot, it will be drawn on top of earlier defined traces. However, when one adds a shape, it will always be on top of everything else. Example: library(plotly) p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zerweck |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579179 |
| octolytics-dimension-repository_nwo | plotly/plotly.R |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579179 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.R |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width