Annotation Labels in Polar Chart

2 posts, 0 answers
  1. Marcello
    Marcello avatar
    60 posts
    Member since:
    Apr 2013

    Posted 16 Nov 2016 Link to this post

    Hi,

    I use a polar chart as a compass and I want to show East, North, South, West labels.

    Using a slider user can rotate chart, labels must rotate also.

    Exists an annotation strategy, or other, that allo me to add this labels?

    In the attatched image, North is, at this moment, approx at 145°

    Thanks,

    marcello.

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1452 posts

    Posted 18 Nov 2016 Link to this post

    Hi Marcello,

    To achieve your requirement you can use PolatCustomAnnotation for the labels. Then based on the rotation logic and angle you can set the annotation's PolarValue and RadialValue properties. You will also offset the annotation to be drawn outside of the plot area. You can do that using the Margin of the annotation or the element inside the annotation's content.

    Another approach could be to set the custom annotations at fixed position and rotate the chart using its StartAngle property. This way the annotations will rotate automatically along with the chart.

    Regards,
    Martin
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Back to Top