-
Notifications
You must be signed in to change notification settings - Fork 33
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
base: main
Are you sure you want to change the base?
Conversation
insertion_order
and color_conflict_prefer_last
to Legend
insertion_order
and color_conflict_handling
to Legend
@@ -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. |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add another doc comment here
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add another doc comment here
I feel like this needs an image to explain what is going on, and maybe a demo/example |
insertion_order
lets the user pick the legend order.color_conflict_handling
still allows a color to be specified in case of conflicts.