Title: Can't set 'colorbar' parameters in layout.template.data.{trace}[i].{line|marker} · Issue #4467 · plotly/plotly.js · GitHub
Open Graph Title: Can't set 'colorbar' parameters in layout.template.data.{trace}[i].{line|marker} · Issue #4467 · plotly/plotly.js
X Title: Can't set 'colorbar' parameters in layout.template.data.{trace}[i].{line|marker} · Issue #4467 · plotly/plotly.js
Description: Setting colorbar parameters doesn't appear to work in layout.template.data.{trace_type}[i].{line|marker}. Related: #3100 (comment), to quote @etpinard: As for the colorbar part, the problem comes from the colorbar defaults call: plotly.j...
Open Graph Description: Setting colorbar parameters doesn't appear to work in layout.template.data.{trace_type}[i].{line|marker}. Related: #3100 (comment), to quote @etpinard: As for the colorbar part, the problem comes f...
X Description: Setting colorbar parameters doesn't appear to work in layout.template.data.{trace_type}[i].{line|marker}. Related: #3100 (comment), to quote @etpinard: As for the colorbar part, the problem com...
Opengraph URL: https://github.com/plotly/plotly.js/issues/4467
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't set 'colorbar' parameters in layout.template.data.{trace}[i].{line|marker}","articleBody":"Setting `colorbar` parameters doesn't appear to work in `layout.template.data.{trace_type}[i].{line|marker}`.\r\n\r\nRelated: https://github.com/plotly/plotly.js/issues/3100#issuecomment-429374392, to quote @etpinard:\r\n\r\n\u003e As for the colorbar part, the problem comes from the colorbar defaults call:\r\n\u003e \r\n\u003e https://github.com/plotly/plotly.js/blob/d34015066c8d339f041c9ac5ae68762a342d5d86/src/components/colorscale/defaults.js#L62\r\n\u003e \r\n\u003e where `containerOut` is `fullData[i]` for heatmap, but is `fullData[i].marker` for scatter and other marker colorscales. Colorbar templates propagate correctly (using [`Template.newContainer`](https://github.com/plotly/plotly.js/blob/d34015066c8d339f041c9ac5ae68762a342d5d86/src/components/colorbar/defaults.js#L23)) from `fullData[i]`, but **not** from marker containers. Adding\r\n\u003e \r\n\u003e \r\n\u003e \r\n\u003e should be enough to fix this, but we should look for other situations where supply-defaults subroutines are called with trace sub-containers.\r\n\r\n-----\r\n\r\nI'm not sure the above suggested fix was ever implemented.\r\n\r\nThis codepen demonstrates the issue with `ypad`:\r\nhttps://codepen.io/wbrgss/pen/NWPXEPG\r\n\r\nI logged a separate issue related to #3100 in #4466","author":{"url":"https://github.com/wbrgss","@type":"Person","name":"wbrgss"},"datePublished":"2020-01-06T22:42:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4467/plotly.js/issues/4467"}
| 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:2cb81a2a-78b5-4fc2-c336-e93c8e81fcfe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B092:376F63:733B39:9E8769:6A57DA62 |
| html-safe-nonce | e57a61fd064d0334aa55d09a09bc0a5799e621764dd0319020c5df6427a21628 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDkyOjM3NkY2Mzo3MzNCMzk6OUU4NzY5OjZBNTdEQTYyIiwidmlzaXRvcl9pZCI6IjE3MDgxMzQ0NDE4MzcyMTk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c05647bd488eb1a11fa5e23d44dba4c7ee12853d516c29c70d0861d4b5c5636c |
| hovercard-subject-tag | issue:545978767 |
| 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/4467/issue_layout |
| twitter:image | https://opengraph.githubassets.com/159b3dc90ebaa1cd1087ae17c825b6aed445ab8d10c562b4a01fd59c45cfcdbc/plotly/plotly.js/issues/4467 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/159b3dc90ebaa1cd1087ae17c825b6aed445ab8d10c562b4a01fd59c45cfcdbc/plotly/plotly.js/issues/4467 |
| og:image:alt | Setting colorbar parameters doesn't appear to work in layout.template.data.{trace_type}[i].{line|marker}. Related: #3100 (comment), to quote @etpinard: As for the colorbar part, the problem comes f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wbrgss |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| 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 | 9044d0f867aa9892268d1f430238ff123e11ee91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width