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

CartesianCustomLineAnnotation along with text annotation

1 Answer 121 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bipin
Top achievements
Rank 1
Bipin asked on 05 Jul 2013, 07:34 AM
Hi
We are working on CartesianCustomLineAnnotation and we want display intersection of custom line annotation with
ScatterLineSeries. Right now we are able to find out the intersection point which we are displaying at top right corner.

PFA. Please let us know how to resolve this issue?

Thanks
Bipin D

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 10 Jul 2013, 08:37 AM
Hi Bipin,

There are two ways that you can solve this, depending on the specifics of your scenario:
  • If you need to display vertical or horizontal lines (not sloping) you can use GridLine Annotations which have built in support for labels. Here's an example:
    <telerik:CartesianGridLineAnnotation
                Axis="{Binding HorizontalAxis, ElementName=chart}"
     Value="{Binding XValue}"
     Label="{Binding XValue}">
        <telerik:CartesianGridLineAnnotation.LabelDefinition>
            <telerik:ChartAnnotationLabelDefinition Location="Right"
                                     VerticalAlignment="Top"/>
        </telerik:CartesianGridLineAnnotation.LabelDefinition>
    </telerik:CartesianGridLineAnnotation>
  • If the lines can be sloped than you will need to display the text using CartesianCustomAnnotation, in addition to using CartesianCustomLineAnnotation.

I hope this helps. 

Regards,
Petar Kirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
General Discussions
Asked by
Bipin
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or