Title: [BUG]: `contour.showlegend` default differs from actual behavior · Issue #8111 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: `contour.showlegend` default differs from actual behavior · Issue #8111 · plotly/plotly.js
X Title: [BUG]: `contour.showlegend` default differs from actual behavior · Issue #8111 · plotly/plotly.js
Description: Description The contour.showlegend reference documents the default as true. However, for contours with coloring !== 'none', the actual default is explicitly set to false in: plotly.js/src/traces/contour/style_defaults.js Lines 20 to 29 i...
Open Graph Description: Description The contour.showlegend reference documents the default as true. However, for contours with coloring !== 'none', the actual default is explicitly set to false in: plotly.js/src/traces/co...
X Description: Description The contour.showlegend reference documents the default as true. However, for contours with coloring !== 'none', the actual default is explicitly set to false in: plotly.js/src/t...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8111
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `contour.showlegend` default differs from actual behavior","articleBody":"### Description\n\nThe [contour.showlegend](https://plotly.com/javascript/reference/contour/#contour-showlegend) reference documents the default as `true`.\n\nHowever, for contours with `coloring !== 'none'`, the actual default is explicitly set to `false` in:\nhttps://github.com/plotly/plotly.js/blob/4862f6271046024e58cd25bfa771e81ffe2fdce6/src/traces/contour/style_defaults.js#L20-L29\n\nSo the documented default does not match the actual behavior. Or this is confusing.\n\n### Screenshot\n\n\u003cimg width=\"1447\" height=\"618\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3c4ed164-af9b-48a6-b4c0-5858be95952a\" />\n\n### Codepen\n\nhttps://codepen.io/Lexachoc/pen/WbpdLjQ\n\n","author":{"url":"https://github.com/Lexachoc","@type":"Person","name":"Lexachoc"},"datePublished":"2026-10-09T15:55:19Z","url":"https://github.com/plotly/plotly.js/issues/8111"}
| 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:7652bb11-9111-5021-19c8-1702280e96b9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9664:1D86C4:2CF48EF:392234B:6B01B699 |
| html-safe-nonce | 21f9c8dd62d20c5154a22d70434d71dc312e2ae6e92ccd31c3a6283d67169db5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjY0OjFEODZDNDoyQ0Y0OEVGOjM5MjIzNEI6NkIwMUI2OTkiLCJ2aXNpdG9yX2lkIjoiODU5NzYwODY5OTYyNTg0NjQyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a7ee0cae382749e53266bd15fdedc119fd579b992d29d6cf267f575ed4eb0d15 |
| hovercard-subject-tag | issue:5780939292 |
| 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/8111/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d4db4358a6a0a0d81351d950f7ba1953402116f405eb8b44dd467086a119fea5/plotly/plotly.js/issues/8111 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d4db4358a6a0a0d81351d950f7ba1953402116f405eb8b44dd467086a119fea5/plotly/plotly.js/issues/8111 |
| og:image:alt | Description The contour.showlegend reference documents the default as true. However, for contours with coloring !== 'none', the actual default is explicitly set to false in: plotly.js/src/traces/co... |
| 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