Skip to content
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

Add insertion_order and color_conflict_handling to Legend #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Sep 15, 2024

insertion_order lets the user pick the legend order.

color_conflict_handling still allows a color to be specified in case of conflicts.

@Zoxc Zoxc changed the title Add insertion_order and color_conflict_prefer_last to Legend Add insertion_order and color_conflict_handling to Legend Sep 15, 2024
@@ -86,6 +99,23 @@ impl Legend {
self.hidden_items = Some(hidden_items.into_iter().collect());
self
}

/// Specifies if the legend item order should be the inserted order.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as opposed to what?
maybe this should also be an enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The legends currently get sorted due to the b-tree.

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.

2 participants