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

Lineseries Tracker is offset to the curve #2019

Open
Zird231 opened this issue Aug 2, 2023 · 2 comments
Open

Lineseries Tracker is offset to the curve #2019

Zird231 opened this issue Aug 2, 2023 · 2 comments

Comments

@Zird231
Copy link

Zird231 commented Aug 2, 2023

Steps to reproduce

1.In WPF, create a normal line series plotview. Add some points in it, let these points be drawed to a curve not a straigt line
2.Set lineseries.InterpolationAlgorithm = InterpolationAlgorithms.CatmullRomSpline
3.Set Hovertracker to MouseEnter evevnt : this.plotView.ActualController.BindMouseEnter(OxyPlot.PlotCommands.HoverTrack);

Platform: windows

Expected behaviour

image

As you can see, the location displayed by the Tracker is not on the curve, but is offset. The mouse cursor must be placed on this offset point for Trakcer to display. I guess that the display values calculated by the curve algorithm are offset from the actual values, which leads to this problem. Is the a bug ? Is there any way to make Trakcer display strictly on the curve?

@Jonarw
Copy link
Member

Jonarw commented Aug 5, 2023

LineSeries>Catmull-Rom interpolation is an existing example showing this problem.

@Zird231
Copy link
Author

Zird231 commented Aug 30, 2023

LineSeries>Catmull-Rom interpolation is an existing example showing this problem.

I can't find the solution of this problem. I only find some basic setting in this example you mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants