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

[Solved] ChartTrackBallBehavior

3 Answers 76 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mag
Top achievements
Rank 2
Mag asked on 09 Jan 2014, 08:32 PM
Hello
I have a LineSeries and i use the track ball behavior to see the points of my line series.
My questions is : can i change that information?? how do i do that?
i have this code:
            <Chart:RadCartesianChart.Behaviors>
                <Chart:ChartTrackBallBehavior TrackInfoUpdated="ChartTrackBallBehavior_TrackInfoUpdated" 
                                              ShowIntersectionPoints="True" />
            </Chart:RadCartesianChart.Behaviors>

how do i implement a style or something similar to personalize the information

Thank you

3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 10 Jan 2014, 01:01 PM
Hello Mario,

Thank you for contacting us.

There is a ChartTrackBallBehavior.TrackInfoTemplate property that sets the DataTemplate for the displayed info on a per series basis. It has to be attached to the specific series you wish to customize the behavior for. From the context of the TrackInfoTemplate you can extract the DataPoint and the underlying DataItem. I have attached a sample application that demonstrates how you can do this.

I hope this was useful. Please, do not hesitate to contact us if you have further questions.


Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mag
Top achievements
Rank 2
answered on 10 Jan 2014, 09:07 PM
Thank you,
It helped a lot, but i have another question, i used that on an windows 8 application and i can see the information with the mouse, but i also have the need to use it on a tablet touch, but in that case i can't see the information.
can you tell me how to do it? 
Sorry for my basic English

0
Rosy Topchiyska
Telerik team
answered on 14 Jan 2014, 11:28 AM
Hi Mario,

In touch mode the user have to hold over the chart area until the information appears, and then he can move his finger along the chart to see information about different data points.

I hope this was useful. Please, let us know if you have further questions.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart for XAML
Asked by
Mag
Top achievements
Rank 2
Answers by
Rosy Topchiyska
Telerik team
Mag
Top achievements
Rank 2
Share this question
or