Skip to content

Demo: show value near cursor with multiple scatter plots#3507

Merged
swharden merged 2 commits intoScottPlot:mainfrom
bluemodel:demo-nearest-multiple-scatter
Mar 19, 2024
Merged

Demo: show value near cursor with multiple scatter plots#3507
swharden merged 2 commits intoScottPlot:mainfrom
bluemodel:demo-nearest-multiple-scatter

Conversation

@jamaa
Copy link
Contributor

@jamaa jamaa commented Mar 18, 2024

As suggested in #3503, this adds a a demo for hovering over the nearest point of multiple scatter plots.

Title is "Show Value Under Mouse, Multiple Series", please advise whether to name it differently to differentiate it more from the existing demo "Show Value Under Mouse".

Also, maybe I went a little overboard by also adding a marker and a text to the hovered point?

grafik

@jamaa
Copy link
Contributor Author

jamaa commented Mar 18, 2024

btw, the text placement being slightly offset from the point relies on #3506

@swharden swharden changed the title Add a demo for hovering over nearest point of multiple scatter plots Demo: show value near cursor with multiple scatter plots Mar 19, 2024
@swharden swharden merged commit d4e614d into ScottPlot:main Mar 19, 2024
@jamaa jamaa deleted the demo-nearest-multiple-scatter branch March 20, 2024 08:44
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.

Demo: Add example for Scatter.GetNearest() using multiple scatter plots

2 participants