-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
pie legends with conflicting colors #2858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What if we added a
|
We already have a |
Oh right I forgot that scalegroup got implemented (proof -> here),.
This sounds like a solid proposition 👌 But, just to think out loud
Interesting, perhaps legendgroup should lead to a single legend item per legendgroup value not just for pies, but for all trace types that support legend items? Perhaps this could be a new mode e.g. |
Merging in #3885 See https://codepen.io/etpinard/pen/arVVpg for Potential solution:
More info: #3876 (comment) |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
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?editors=0010
and 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"
The two options that come to mind for how to resolve this:
The text was updated successfully, but these errors were encountered: