This is a migrated thread and some comments may be shown as answers.

TrackBallInfoTemplate Problem

1 Answer 67 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Semih
Top achievements
Rank 1
Semih asked on 05 Dec 2014, 06:50 AM
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>

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 08 Dec 2014, 11:41 AM
Hi Semih,

This behavior is actually by design. The trackball will display information about the closest series' data point. We have a feature request logged in here. You can vote for it in order to raise its priority.

Should you have any other questions, please let me know.

Regards,
Peshito
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Semih
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or