René's URL Explorer Experiment


Title: pie legends with conflicting colors · Issue #2858 · plotly/plotly.js · GitHub

Open Graph Title: pie legends with conflicting colors · Issue #2858 · plotly/plotly.js

X Title: pie legends with conflicting colors · Issue #2858 · plotly/plotly.js

Description: Pointed out by @nicolaskruchten If you make several pie charts that share one or more labels but give them different colors, you get one legend entry per label, using the first color only: https://codepen.io/alexcjohnson/pen/Zjvqee?edito...

Open Graph Description: Pointed out by @nicolaskruchten If you make several pie charts that share one or more labels but give them different colors, you get one legend entry per label, using the first color only: https://...

X Description: Pointed out by @nicolaskruchten If you make several pie charts that share one or more labels but give them different colors, you get one legend entry per label, using the first color only: https://...

Opengraph URL: https://github.com/plotly/plotly.js/issues/2858

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pie legends with conflicting colors","articleBody":"Pointed out by @nicolaskruchten \r\n\r\nIf you make several pie charts that share one or more labels but give them different colors, you get one legend entry per label, using the first color only:\r\nhttps://codepen.io/alexcjohnson/pen/Zjvqee?editors=0010\r\n![screen shot 2018-07-30 at 4 09 30 pm](https://user-images.githubusercontent.com/2678795/43420830-fade941a-9412-11e8-9031-e19bf20a2cd8.png)\r\nand clicking the legend entry for a label makes all copies - even the ones with a different color - disappear. This is confusing, but it's not 100% clear what the right fix is. The case I'm imagining is pies representing distinct data but expressed with the same labels. Like two survey questions, \"How many scoops of ice cream do you want\" and \"How many cherries should there be on top\", each with answers \"0\", \"1\", \"2\", \"3 or more\"\r\n\r\nThe two options that come to mind for how to resolve this:\r\n- Make one legend entry per label/color combination. This seems the most flexible, as you could for example show/hide each slice independently. But it could be confusing, especially since we don't have a way to split up the legend or to interleave subheadings, to have multiple entries with matching labels.\r\n- Show all of the colors next to each other in a single legend entry, kind of like we do for candlestick (though that's just 2 colors, this could be arbitrarily many). This would be more compact, could avoid the confusion ^^ (though could add more confusion if there are too many colors), and if the pies were related enough in meaning you might want to analyze them together - for example, yes/no/maybe questions, you want to hide all the maybes and just compare yes and no for all of them.","author":{"url":"https://github.com/alexcjohnson","@type":"Person","name":"alexcjohnson"},"datePublished":"2018-07-30T20:38:50Z","url":"https://github.com/plotly/plotly.js/issues/2858"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a7fae487-b9dd-b344-2780-9aebe1bc8d6e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C24:2E5652:2A9DE4C:3645D71:6B01ACF9
html-safe-nonceb7763346bc8016c1310c2fe7f983352f82c34e7ddf9e8887ab52677c2d0ab85b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzI0OjJFNTY1MjoyQTlERTRDOjM2NDVENzE6NkIwMUFDRjkiLCJ2aXNpdG9yX2lkIjoiMjQ0ODIwNDc0NDMyNjQ5MTM4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac50a546f9f78d4995e77a59af8357716bface1069518a2e69712332b472d2a50f
hovercard-subject-tagissue:345925513
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/2858/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e96889c3e20bf450142ff268d61b7fcf12cbfaedff2e86169847cdd733b7ab6e/plotly/plotly.js/issues/2858
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e96889c3e20bf450142ff268d61b7fcf12cbfaedff2e86169847cdd733b7ab6e/plotly/plotly.js/issues/2858
og:image:altPointed out by @nicolaskruchten If you make several pie charts that share one or more labels but give them different colors, you get one legend entry per label, using the first color only: https://...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexcjohnson
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/2858#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F2858
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F2858
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/2858
Reloadhttps://github.com/plotly/plotly.js/issues/2858
Reloadhttps://github.com/plotly/plotly.js/issues/2858
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/2858
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/2858
pie legends with conflicting colorshttps://github.com/plotly/plotly.js/issues/2858#top
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/alexcjohnson
alexcjohnsonhttps://github.com/alexcjohnson
on Jul 30, 2018https://github.com/plotly/plotly.js/issues/2858#issue-345925513
@nicolaskruchtenhttps://github.com/nicolaskruchten
https://codepen.io/alexcjohnson/pen/Zjvqee?editors=0010https://codepen.io/alexcjohnson/pen/Zjvqee?editors=0010
https://user-images.githubusercontent.com/2678795/43420830-fade941a-9412-11e8-9031-e19bf20a2cd8.png
alexcjohnsonhttps://github.com/alexcjohnson
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
status: discussion neededhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22status%3A%20discussion%20needed%22
on Jul 30, 2018https://github.com/plotly/plotly.js/issues/2858#event-1761182328
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Jul 30, 2018https://github.com/plotly/plotly.js/issues/2858#issuecomment-409011738
https://github.com/alexcjohnson
alexcjohnsonhttps://github.com/alexcjohnson
on Jul 30, 2018https://github.com/plotly/plotly.js/issues/2858#issuecomment-409025714
scalegroup attributehttps://github.com/plotly/plotly.js/blob/master/src/traces/pie/attributes.js#L135
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Jul 30, 2018https://github.com/plotly/plotly.js/issues/2858#issuecomment-409029051
herehttps://rreusser.github.io/plotly-mock-viewer/#pie_scale_textpos_hideslices
alexcjohnsonhttps://github.com/alexcjohnson
on Oct 10, 2018https://github.com/plotly/plotly.js/issues/2858#event-1896399721
hiddenslices -> hiddenlabelshttps://github.com/plotly/plotly.js/commit/6a9808705a2c416f46d853d7f41dcda32f7f86d4
6a98087https://github.com/plotly/plotly.js/commit/6a9808705a2c416f46d853d7f41dcda32f7f86d4
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on May 23, 2019https://github.com/plotly/plotly.js/issues/2858#issuecomment-495242358
#3885https://github.com/plotly/plotly.js/issues/3885
https://codepen.io/etpinard/pen/arVVpghttps://codepen.io/etpinard/pen/arVVpg
https://user-images.githubusercontent.com/6675409/58117277-338e0100-7bcc-11e9-9096-e7c4b8601115.png
#3876 (comment)https://github.com/plotly/plotly.js/pull/3876#discussion_r286097769
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 11, 2024https://github.com/plotly/plotly.js/issues/2858#issuecomment-2161256599
@gvwilsonhttps://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 11, 2024https://github.com/plotly/plotly.js/issues/2858#event-13120455240
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/2858
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/2858
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.