'OxyPlot: How to calculate in TrackerFormatString?

I try to create a line series where not only x- and y-values shall be displayed in the tracker, but one more property:

var series = new LineSeries {TrackerFormatString = "X:{2}\nY:{4}\nZ:{2*(1-4)}"};
series.Points.AddRange(...);

I want another property Z = (1-Y) * X to be displayed in the third row of the tracker. How is this possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source