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

custom data for hover label #49

Open
FabianLippoldZR opened this issue Sep 26, 2024 · 0 comments · May be fixed by #76
Open

custom data for hover label #49

FabianLippoldZR opened this issue Sep 26, 2024 · 0 comments · May be fixed by #76

Comments

@FabianLippoldZR
Copy link

Is your feature request related to a problem? Please describe.
Currently there is no way to attach custom data to plot points, e.g. for use in the hover label.

Describe the solution you'd like
I would like an easy way to use custom data for points in the label_formatter;

Describe alternatives you've considered

  • A previous solution which would introduce a type parameter for the custom data was rejected Introduce type parameter for plot points egui#4719
  • Putting all the drawn PlotPoint IDs with their custom data in a Arc<Mutex<HashMap>> to retrieve them later in the formatter is quite unwieldy and is nowhere close to performant enough

Additional context
Current use case is to show a "validity" field for each point on hover

@bircni bircni linked a pull request Feb 8, 2025 that will close this issue
1 task
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 a pull request may close this issue.

1 participant