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

draw custom line over data series

5 Answers 114 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mago
Top achievements
Rank 1
Mago asked on 16 Nov 2010, 12:53 PM
Hello,

I am requested to draw a vertical line over a data series in a chart when the left mouse button is pressed. The line must be drawn depending on the closest X Axis value to the click. So far my approach was using the CustomLine, which is working perfectly, but I must draw this line over the data series not behind.
Also I am interested to highlight, for example surrounding the label text with a rectangle, only one  X Axis Label. The one to which the drawn line corresponds.

5 Answers, 1 is accepted

Sort by
0
Mago
Top achievements
Rank 1
answered on 16 Nov 2010, 03:03 PM
I really need an answer for this problem guys.
I'm thinking of using a BarSeries insted of the CustomLine and set the desired DataPoint value to double.PositiveInfinite, although this is not the solution I want. 
And still I need an answer regarding the possibility to change the style of only one Axis Label. If it is possible please tell me how because it drives me mad. I can not find anything on the Internet about this.

Thank You.
Waiting for an answer!
0
Sia
Telerik team
answered on 18 Nov 2010, 03:05 PM
Hi Mago,

Can you please check the approach described in this forum topic and tell us if this is appropriate solution in your scenario? Having the ChartArea retemplated you can put the annotations layer on top.

Regarding your second question, unfortunately you cannot change the style of a specific axis label with the current version of RadChart. This issue is already logged in our public issues tracking system and you can track its progress there.

Regards,
Sia
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Mago
Top achievements
Rank 1
answered on 19 Nov 2010, 09:56 AM
Thank You for your answer. That was indeed what I wanted. Sorry for not finding it myself.
Also I'm curious, Is it possible to enlarge only one point mark (the one being selected) in a line series?
0
Sia
Telerik team
answered on 19 Nov 2010, 05:29 PM
Hi Mago,

Please find attached a sample project which demonstrates one possible way for changing the size of one specific clicked point mark. I hope this helps.

Greetings,
Sia
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Mago
Top achievements
Rank 1
answered on 22 Nov 2010, 01:29 PM
Hello,

Yes this helped a lot. Thank You!
Tags
Chart
Asked by
Mago
Top achievements
Rank 1
Answers by
Mago
Top achievements
Rank 1
Sia
Telerik team
Share this question
or