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 ability to customize the display of hover plot labels #934

Merged
merged 4 commits into from
Dec 25, 2021

Conversation

isegal
Copy link
Contributor

@isegal isegal commented Dec 6, 2021

This is a feature candidate / RFC for #933

This is a work-in-progress POC to gauge whether there is interest in this feature. Happy to continue to make changes based on feedback.

elem: ClosestElem,
shapes: &mut Vec<Shape>,
plot: &PlotConfig<'_>,
_: &CustomLabelFunc,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently implemented only for the line chart. If this is the direction that we are good to go, happy to continue implementing for BarChart and BoxPlot.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Looks good to me (except for Option<&str> -> &str). Perhaps @EmbersArc also has some thoughts.

egui/src/widgets/plot/mod.rs Outdated Show resolved Hide resolved
@isegal isegal requested a review from emilk December 23, 2021 21:58
@emilk emilk merged commit 26885c2 into emilk:master Dec 25, 2021
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