Pie Plot Area Width

Thread is closed for posting
2 posts, 0 answers
  1. Michel Laforce
    Michel Laforce avatar
    10 posts
    Member since:
    Apr 2010

    Posted 07 Oct 2011 Link to this post

    View picture attachement

    I am trying to make space for the legend, it put the width to 700 but it extends the plot area when I set a width to it it has no effect






    <Appearance Dimensions-Width="300">



    <FillStyle FillType="Solid" MainColor="White"></FillStyle>



    <Border Color="130, 130, 130" />







    How do I resolve this


  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 11 Oct 2011 Link to this post

    Hello Michel,

    There are several lays you can achieve that.

    The easiest way you could go is to simply set the AutoLayout property of RadChart to true. This will make all the chart elements to not overlap each other.
    Then set the LegendPosition to Right like this:
    this.RadChart1.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Right;

    As another approach - the Legend.Appearance.ItemTextAppearance.MaxLength property defines the number of characters to be shown before the legend item text gets trimmed. And in case the legend item text is longer than the specified number, this (...) sign is shown.

    For example:
    chart.AutoLayout = true;  
    chart.Legend.Appearance.ItemTextAppearance.MaxLength = 20;  

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top