Radchart 3d Pie Styling Issues

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    1 posts
    Member since:
    Sep 2013

    Posted 02 Oct 2013 Link to this post

    I've recently undertaken a project using an older version of RadControls and I'm really struggling in my attempt to customize the 3d pie chart. For reference, the developer machine has the Q1 2011 RadControls for WPF installed on it.

    What I'm trying to do is style the item labels in some way that they don't overlap, or barring that, add some customized tooltips that display the label data. I've done a ton of research and playing around with custom styles, but:

    A: 3d Pie labels/tooltips on this version appear to be Un-stylable or
    B: I'm way off on attempts to restyle.

    The latter seems unlikely since I was able to restyle the labels on a 2d pie chart using the same static resource, but I haven't found any documentation explicitly stating that the labels in this chart are not able to be styled.

    Is there any older documentation available that could help me figure this out?

    Also, I'm using MVVM format so code behind solutions are not very practical.
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 07 Oct 2013 Link to this post

    Hi Patrick,

    I'm sorry to hear that it is hard to style the 3D series labels.  Please note that styling 3D charts is a little bit different than styling 2D. 3D charts use different templates, styles and controls. Currently styling a 3D series type can be done by using implicit styles in XAML:
    <!--Note that the x:Key is not specified-->
    <Style  TargetType="telerikCharting:Label3D">
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="BorderBrush" Value="Blue" />
        <Setter Property="BorderThickness" Value="10" />
        <Setter Property="Foreground" Value="Black" />
        <Setter Property="Padding" Value="4,0,4,0" />

    Unfortunately RadChart does not support smart labels positioning for 3D series types and it would not be possible to customize the labels location. I'd suggest that you use Tooltips instead. Another option is to show the values per each DataPoint in the Legend. You need to add new ItemMapping, which defines the mapping for the legend item:
                ItemMapping item = new ItemMapping();
                item.DataPointMember = DataPointMember.LegendLabel;
                item.FieldName = "ProgramTitle";

    To add the LegendLabel text to the Pie label, use:

    mapping.SeriesDefinition = new Line3DSeriesDefinition() { DefaultLabelFormat = "#LEGENDLABEL #VALUE" };

    For more information on the label formats, please, refer to http://www.telerik.com/help/wpf/label_format_expressions.html

    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 >>
Back to Top