Title: add trace `legendItem` styles · Issue #3735 · plotly/plotly.js · GitHub
Open Graph Title: add trace `legendItem` styles · Issue #3735 · plotly/plotly.js
X Title: add trace `legendItem` styles · Issue #3735 · plotly/plotly.js
Description: I'm thinking of adding a new trace attribute container: legenditem { x: [/* */], y: [/* */], legenditem: { textfont: { color: 'red' size: 12 }, marker: { size: 20, symbol: 'circle', line: {width: 2, color: '#444'} } } } to the scatter*, ...
Open Graph Description: I'm thinking of adding a new trace attribute container: legenditem { x: [/* */], y: [/* */], legenditem: { textfont: { color: 'red' size: 12 }, marker: { size: 20, symbol: 'circle', line: {width: 2...
X Description: I'm thinking of adding a new trace attribute container: legenditem { x: [/* */], y: [/* */], legenditem: { textfont: { color: 'red' size: 12 }, marker: { size: 20, symbol: 'circle...
Opengraph URL: https://github.com/plotly/plotly.js/issues/3735
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add trace `legendItem` styles","articleBody":"I'm thinking of adding a new trace attribute container: `legenditem` \r\n\r\n```js\r\n{\r\n x: [/* */],\r\n y: [/* */],\r\n legenditem: {\r\n textfont: {\r\n color: 'red'\r\n size: 12\r\n },\r\n marker: {\r\n size: 20,\r\n symbol: 'circle',\r\n line: {width: 2, color: '#444'}\r\n }\r\n }\r\n}\r\n```\r\n\r\nto the `scatter*`, `bar*` and `pie` traces to make their legend item styling configurable. This would be an easy (easier than @alexcjohnson 's legend 2.0 idea :smirk: ) solution to https://github.com/plotly/plotly.js/issues/2967, https://github.com/plotly/plotly.js/issues/2080, https://github.com/plotly/plotly.js/issues/1701 and https://github.com/plotly/plotly.js/issues/1560\r\n\r\n----\r\n\r\nBy the way, I'm thinking a naming this new container `legenditem` and not `legend` as I'm thinking `legend` could eventually be used when we implement multiple legends where e.g. `legend: 'legend2'` would mean \"put this trace's legend item in the second legend\".\r\n\r\nOne more note on @alexcjohnson 's legend 2.0 idea: having `legenditem` in traces wouldn't make it obsolete. We could still add a way to turn annotations into legend items later. \r\n\r\nThoughts?","author":{"url":"https://github.com/etpinard","@type":"Person","name":"etpinard"},"datePublished":"2019-04-05T16:51:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/3735/plotly.js/issues/3735"}
| 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:a01d3840-43b9-eca8-d509-93bf39039fd7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 802E:23E495:502E12:6C5260:6A5A7766 |
| html-safe-nonce | e52a9b51208ccffa926ddbb6827d53c4bf2daddd71d8c6873df531c42b76fd90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDJFOjIzRTQ5NTo1MDJFMTI6NkM1MjYwOjZBNUE3NzY2IiwidmlzaXRvcl9pZCI6IjcwMDg3MTM1MjU4NzY2NTE4NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4c3c13f2bc1c221f5850c8f6daf848e49071ccfc0a17a54230328a86962f22a1 |
| hovercard-subject-tag | issue:429846870 |
| 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/3735/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8e89ac5dcfa84e936869631bb074fff5371884f42be9cfc3f262d706ddb48ea5/plotly/plotly.js/issues/3735 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8e89ac5dcfa84e936869631bb074fff5371884f42be9cfc3f262d706ddb48ea5/plotly/plotly.js/issues/3735 |
| og:image:alt | I'm thinking of adding a new trace attribute container: legenditem { x: [/* */], y: [/* */], legenditem: { textfont: { color: 'red' size: 12 }, marker: { size: 20, symbol: 'circle', line: {width: 2... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | etpinard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106 |
| 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 | 0437efb828a4041956ce45d1f7fe69fff38926c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width