Title: Strange behaviour when hiding a trace in a plot with many filling traces · Issue #2380 · plotly/plotly.js · GitHub
Open Graph Title: Strange behaviour when hiding a trace in a plot with many filling traces · Issue #2380 · plotly/plotly.js
X Title: Strange behaviour when hiding a trace in a plot with many filling traces · Issue #2380 · plotly/plotly.js
Description: If you have around 10 traces or more in a plot that fill to a neighbour, clicking the legend to hide an individual trace can lead to strange behaviour from filled areas. It appears that, generally, clicking the legend entry for a trace (...
Open Graph Description: If you have around 10 traces or more in a plot that fill to a neighbour, clicking the legend to hide an individual trace can lead to strange behaviour from filled areas. It appears that, generally,...
X Description: If you have around 10 traces or more in a plot that fill to a neighbour, clicking the legend to hide an individual trace can lead to strange behaviour from filled areas. It appears that, generally,...
Opengraph URL: https://github.com/plotly/plotly.js/issues/2380
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange behaviour when hiding a trace in a plot with many filling traces","articleBody":"If you have around 10 traces or more in a plot that fill to a neighbour, clicking the legend to hide an individual trace can lead to strange behaviour from filled areas.\r\n\r\nIt appears that, generally, clicking the legend entry for a trace (the uppermost non-filling trace in the CodePen example below) that does not fill to a neighbour and whose hiding makes the plot rescale, will make a filled area get an incorrect shape. If you zoom in or out, the filled area gets its correct shape back. If you manually adjust the zoom level before you click, the issue does not seem to occur.\r\n\r\nAnother issue, possibly unrelated: if you click filling trace 7 or 2 in the CodePen example below, the filled area that should have expanded instead becomes empty. Manually setting the zoom level does not prevent this issue from occurring. However, here as well, the plot is corrected upon zooming; and a similar amount of traces seems necessary to trigger the bug. \r\n\r\n[CodePen](https://codepen.io/ChristofferHS/pen/vdpeVe)","author":{"url":"https://github.com/ChristofferHS","@type":"Person","name":"ChristofferHS"},"datePublished":"2018-02-17T16:40:47Z","url":"https://github.com/plotly/plotly.js/issues/2380"}
| 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:883ff53f-8bca-d5dd-e8fe-b039c0db5b89 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0B0:38C5CF:33C1A76:419E21C:6B01BC60 |
| html-safe-nonce | cccfb2ff4702e45b4776f2eb31ada81e8a0b94021e45e71742cd0a5a1ec3975e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEIwOjM4QzVDRjozM0MxQTc2OjQxOUUyMUM6NkIwMUJDNjAiLCJ2aXNpdG9yX2lkIjoiMTM5NjQ0NDk5MjQ0NDE1MjkyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7f64d9371399884c14f6958d661814a1b29773be0e5e610f7526bf0a54a10a7f |
| hovercard-subject-tag | issue:298017801 |
| 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/2380/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b969b9f6019a7e7cc7d22a1b57cc3ba6c8b9fb1bffaf8ea070b9efcfde72aa98/plotly/plotly.js/issues/2380 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b969b9f6019a7e7cc7d22a1b57cc3ba6c8b9fb1bffaf8ea070b9efcfde72aa98/plotly/plotly.js/issues/2380 |
| og:image:alt | If you have around 10 traces or more in a plot that fill to a neighbour, clicking the legend to hide an individual trace can lead to strange behaviour from filled areas. It appears that, generally,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChristofferHS |
| 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