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

Annotation Labels in Polar Chart

1 Answer 103 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Marcello
Top achievements
Rank 1
Iron
Marcello asked on 16 Nov 2016, 08:23 AM

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.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 18 Nov 2016, 10:45 AM
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.
Tags
ChartView
Asked by
Marcello
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or