-
Notifications
You must be signed in to change notification settings - Fork 940
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
LineSeries Tracker doesn't show (at wpf) #2052
Comments
Zird231
changed the title
LineSeries Tracker doesn't show
LineSeries Tracker doesn't show (at wpf)
Nov 22, 2023
Thanks for reporting this and describing your findings: shall try to look at this over the weekend if I have time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you have two LineSeries in your PlotModel, one is visible, the other is not. Give them a tracker to show, then add points in both of them, and switch the invisible LineSeries to visible after that. Then you will see the original visible one's tracker can be shown, the other can't
Steps to reproduce
And I think I found the problem.
https://github.com/oxyplot/oxyplot/blob/develop/Source/OxyPlot/Series/LineSeries.cs
At the line 300, it uses SmoothedPoints property to Get Nearest Interpolated Point. And when a LineSeries is invisible, it will not calculate it's SmoothedPoints, even if you use legend to show it. So its SmoothedPoints is empty here which causes its tracker doesn't show. Maybe the author should use ResetSmoothedPoints() method before the Get method or at the LegendHitTest.
The text was updated successfully, but these errors were encountered: