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

[Solved] Select a data point in a line series

1 Answer 248 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.
Kevin
Top achievements
Rank 1
Kevin asked on 04 Dec 2013, 02:24 AM
Is it possible to select a data point in a line series? I'm trying to create a line chart and a button, and when a button is clicked a data point in a line series gets selected or highlighted. What makes it worse is that I'm using ChartSeriesProvider instead of an individual LineSeries control...

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 05 Dec 2013, 10:28 AM
Hello Kevin,

Thank you for your interest.

In this case you can use the Series.PointTemplate property to define the template of each point, where you can bind the width, height, fill, stroke, etc. to the isSelected property of the point. Thus, you can customize the selected point/points as per your needs. Also, to select a datapoint programmatically, you can access the desired series and each of its datapoints and change its isSelected property. 
For your convenience, I have attached a project that demonstrates the described approaches.

Let me know if this works for you.

Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart for XAML
Asked by
Kevin
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or