CartesianCustomLineAnnotation along with text annotation

2 posts, 0 answers
  1. Bipin
    Bipin avatar
    13 posts
    Member since:
    May 2013

    Posted 05 Jul 2013 Link to this post

    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
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 10 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top