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

PieChart labels position

1 Answer 73 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Виталий
Top achievements
Rank 1
Виталий asked on 30 Sep 2014, 12:24 PM
Hi,

I want to place labels directly on the border of the pie, so that half of the label should be onto the pie, and other half should be out of the pie.

I’ve found a Margin property of ChartSeriesLabelDefinition but it does not fulfill my goal. Margin >= 0 draws labels onto the pie (closely to its center), and Margin < 0 draws them out of the pie (with different offsets, btw). I need some interjacent position. Is there any workaround?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 03 Oct 2014, 10:20 AM
Hello,

The way to customize the labels of the charting component is to use custom ChartSeriesLabelDefinition. If the Margin of the ChartSeriesLabelDefinition does not help you, maybe combination between margin of the ChartSeriesLabelDefinition and the TextBlock in the custom DataTemplate will do the work. Could you please give this approach a try and let me know how it goes?

Regards,
Pavel R. Pavlov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ChartView
Asked by
Виталий
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or