Skip to content

unique channels #1551

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

Merged
merged 1 commit into from
May 14, 2023
Merged

unique channels #1551

merged 1 commit into from
May 14, 2023

Conversation

mbostock
Copy link
Member

Fixes #1548. I took the simplest approach and deduplicated based solely on the (inferred) channel label. Also, we don’t have to check whether the dropped label has a color, since the channels bound to the color scale should be listed first. I think this is good enough for now, but we can always make it smarter in the future!

Before:
Screenshot 2023-05-14 at 9 02 07 AM

After:
Screenshot 2023-05-14 at 9 01 38 AM

@mbostock mbostock requested a review from Fil May 14, 2023 13:04
@mbostock mbostock merged commit 0a38eb8 into main May 14, 2023
@mbostock mbostock deleted the mbostock/tip-unique branch May 14, 2023 17:57
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect and omit redundant channels in the default tip
2 participants