Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
X Axis Values in LineSeries Tooltip
posted

Is it possible to access the corresponding X-axis value for an item in a series when displaying a LineSeries tooltip? For example, I'm using the following to display the Y-axis value and series title on the tooltip

<StackPanel x:Key="SeriesToolTip">
<TextBlock Margin="2" Text="{Binding Series.Title}" FontWeight="Bold" VerticalAlignment="Center" />
<StackPanel Orientation="Horizontal">
<TextBlock Margin="2" Text="{Binding Item.Magnitude}" VerticalAlignment="Center" />
<TextBlock Margin="2" Text="{Binding Series.Tag}" VerticalAlignment="Center" />
</StackPanel>
</StackPanel>

However my "Item" object doesn't contain the x-axis value. Is there any way to obtain that correct x-axis value? Do I have to add it to my bound ItemsSource objects?

Parents Reply Children
No Data