PieChart labels position

2 posts, 0 answers
  1. Виталий
    Виталий avatar
    2 posts
    Member since:
    Jul 2014

    Posted 30 Sep 2014 Link to this post

    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.
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 03 Oct 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top