Disable Tracker

Jul 3, 2012 at 1:01 PM

Hello everyone,

I would like to disable the tracker on my plot. Is it possible?

I am using a bar graph, and the default tracker contains the label of each box followed by its value. Another possible option for me is to change the tracker message to have only the box value, without its name. How can it be done?

Thank you.

Jul 3, 2012 at 8:05 PM

I don't think it is possible to hide the tracker. This is related to issue http://oxyplot.codeplex.com/workitem/9625 - it should be possible to change the mouse gesture to activate the tracker - and to disable it. I have not implemented this yet, but hope to do it later this year.

To change the tracker text for the BarSeries/ColumnSeries, try to set TrackerFormatString = "{2}"

I will add more information about the tracker format strings at http://oxyplot.codeplex.com/wikipage?title=Custom%20trackers

Nov 1, 2012 at 4:09 AM

FYI, I got around this (what I would consider a limitation) by putting a transparent Border (or Rectangle would also work) over the chart to prevent mouse events from getting through.

Jul 19, 2013 at 1:30 PM
I solved the issue using another workaround:

<Metro:Plot IsHitTestVisible="False" ... />
Nov 22, 2013 at 10:32 AM
To disable the tracker, you can set the DefaultTrackerTemplate to null:
<oxyPlot:Plot Model="{Binding PlotModel}" DefaultTrackerTemplate="{x:Null}" />