Disable Tracker

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

jpnavarini wrote at 2012-07-03 14:01:

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.

objo wrote at 2012-07-03 21:05:

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

taschmidt wrote at 2012-11-01 04:09:

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.

fabsenet wrote at 2013-07-19 14:30:

I solved the issue using another workaround:

<Metro:Plot IsHitTestVisible="False" ... />

kittof wrote at 2013-11-22 10:32:

To disable the tracker, you can set the DefaultTrackerTemplate to null:
<oxyPlot:Plot Model="{Binding PlotModel}" DefaultTrackerTemplate="{x:Null}" />