Custom format in Tracker (WPF)

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

tibel wrote at 2013-12-09 14:56:

The tracker does not use Axis.FormatValueForTracker(double x) to format the value.
Instead TrackerHitResult uses Axis.GetValue(), what makes no sense for me.

I have a size axis and want to change the scaling (from nm to m) at runtime.
How is this intended to be used?

objo wrote at 2013-12-09 20:58:

Thanks for the notice! I agree this is a confusing design and should be changed.
The Axis.FormatValueForTracker was only overriden by Bar/Column series and can easily be removed.
The GetNearestPoint methods should use the TrackerFormatString property to format the values (which are converted from coordinates to the axis data type by the Axis.GetValue method).
I will submit a fix.