I change the tooltip using a tag, but there is a problem: the text does not fit, how can I change the width and height and also change the color in the tooltip? i tried to bind tooltip but it doesnt work, also i checked Oxyplot Documentation but dont find anything.
var series1 = new ScatterSeries
{
MarkerType = MarkerType.Circle,
MarkerSize = 3,
MarkerFill = OxyColors.Gold,
MarkerStrokeThickness = 2,
YAxisKey = "YAxis2",
TrackerFormatString = "{Tag}"
};
upd: i solve it
<oxy:PlotView Model="{Binding MyModel}"
HorizontalAlignment="Stretch"
Height="300"
Background="Transparent">
<oxy:PlotView.DefaultTrackerTemplate>
<ControlTemplate>
<oxy:TrackerControl Position="{Binding Position}" LineExtents="{Binding MyModel.PlotArea}">
<oxy:TrackerControl.Background>
<SolidColorBrush Color="#C0000000" />
</oxy:TrackerControl.Background>
<oxy:TrackerControl.Content>
<Border Background="Transparent" Padding="5">
<TextBlock Text="{Binding}" Margin="7" Foreground="#d1d0c5"/>
</Border>
</oxy:TrackerControl.Content>
</oxy:TrackerControl>
</ControlTemplate>
</oxy:PlotView.DefaultTrackerTemplate>
</oxy:PlotView>
New contributor
ikikaidesu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.