Tracker Position

Oystein Bjorke 5 years ago 0
This discussion was imported from CodePlex

Nicothekrug wrote at 2013-02-15 11:32:

Hi,

Is there a way to force the tracker to be always above the selected DataPoint ? Because in Metro style apps, when the tracker displays under the selected point, I see... my finger instead ;)

objo wrote at 2013-02-15 14:51:

There is a Distance property on the tracker. I have not tested how it works, but it should be possible to use this to increase the distance of the tracker container from the point. See Source\Examples\WPF\WpfExamples\Examples\CustomTrackerDemo for examples (WPF) on how to customize the tracker.

Nicothekrug wrote at 2013-02-15 15:16:

Thanks for the quick reply.

Distance isn't what I need (already tested :-( ), because, depending on the tapped point location on the plot, the tracker is one time above (when close to the bottom of the chart), and an other time under (when close to the top of the chart) the selected DataPoint. I need the tracker always above the Datapoint, even if this makes the trackers goes out of the chart box. If this even possible ?

Nicothekrug wrote at 2013-02-15 15:59:

I can ask an equivalent question : is it possible to show the tracker partially outside the chart area ? I supposed that if the tracker is by default outside the chart area, it is move to a new place which is inside the chart area... Is it possible to disable that ?

objo wrote at 2013-02-17 08:45:

I added http://oxyplot.codeplex.com/workitem/10032
Writing a custom tracker control is the workaround until that issue is closed.

Regarding the second question - I don't know, I have not tested how ClipToBounds works on windows store apps

Nicothekrug wrote at 2013-02-18 08:25:

Thank you objo :)
CodePlex