oxyplot / oxyplot-avalonia

A cross-platform plotting library for .NET. This package targets Avalonia apps.
https://oxyplot.github.io/
MIT License
274 stars 47 forks source link

Fix tracker lines #29

Closed VisualMelon closed 3 years ago

VisualMelon commented 3 years ago

Discussion question on the main repo reveals that tracker lines are broken at the moment: https://github.com/oxyplot/oxyplot/discussions/1762

This should fix them. The code is somewhat different from the corresponding WPF code, as the line alignment is relative to the tracker position, not the container.

I changed the tracker from a Panel to a Canvas to prevent the lines interfering with the other UI elements; however, I'm not quite sure why this makes a difference.