Hi,
I'm using RadCartesianChart for displaying ScatterAreaSeries. Below you can find my TrackBallInfoTemplate for the series. The problem with the TrackBallInfoTemplate is, if there is more than Point on the same Xvalue with different Yvalues, it displays the values from the first Point. But I want to display values from both Points or I want to be able to choose which point to display on theTrackBallInfoTemplate.
Please advice,
Regards
Semih
<telerik:ScatterAreaSeries.TrackBallInfoTemplate>
<DataTemplate>
<Grid Margin="0,0,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" TextAlignment="Justify" Grid.ColumnSpan="2" Text="{Binding DataPoint.DataItem.Description}" />
<TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" Text="Break:" FontWeight="Bold"/>
<TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource statisticsTextStyle}" Text="{Binding DataPoint.DataItem.Xvalue, StringFormat=\{0\}. second}" Margin="3,0,0,0"/>
<TextBlock Grid.Row="2" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" Text="Saving:" FontWeight="Bold"/>
<TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource statisticsTextStyle}" Text="{Binding DataPoint.DataItem.Yvalue, StringFormat=\{0:0.00\}}" Margin="3,0,0,0" />
</Grid>
</DataTemplate>
</telerik:ScatterAreaSeries.TrackBallInfoTemplate>
I'm using RadCartesianChart for displaying ScatterAreaSeries. Below you can find my TrackBallInfoTemplate for the series. The problem with the TrackBallInfoTemplate is, if there is more than Point on the same Xvalue with different Yvalues, it displays the values from the first Point. But I want to display values from both Points or I want to be able to choose which point to display on theTrackBallInfoTemplate.
Please advice,
Regards
Semih
<telerik:ScatterAreaSeries.TrackBallInfoTemplate>
<DataTemplate>
<Grid Margin="0,0,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="100*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" TextAlignment="Justify" Grid.ColumnSpan="2" Text="{Binding DataPoint.DataItem.Description}" />
<TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" Text="Break:" FontWeight="Bold"/>
<TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource statisticsTextStyle}" Text="{Binding DataPoint.DataItem.Xvalue, StringFormat=\{0\}. second}" Margin="3,0,0,0"/>
<TextBlock Grid.Row="2" Grid.Column="0" Style="{StaticResource statisticsTextStyle}" Text="Saving:" FontWeight="Bold"/>
<TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource statisticsTextStyle}" Text="{Binding DataPoint.DataItem.Yvalue, StringFormat=\{0:0.00\}}" Margin="3,0,0,0" />
</Grid>
</DataTemplate>
</telerik:ScatterAreaSeries.TrackBallInfoTemplate>