Problem about adjust legend item text

Thread is closed for posting
2 posts, 0 answers
  1. Víctor
    Víctor avatar
    3 posts
    Member since:
    Mar 2011

    Posted 17 Mar 2011 Link to this post

    Hi,

    I have a problem about adjust legend text. Text are so long and leave the legend area.

    I agree photo to save problems.

    radChart2.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Right;
                radChart2.Legend.Appearance.Location = Telerik.Charting.Styles.LabelLocation.OutsidePlotArea;
                radChart2.Legend.Appearance.Border.Color = Color.Green;
                radChart2.Legend.Appearance.Border.Width = 2;
                radChart2.Legend.Appearance.FillStyle.MainColor = Color.Yellow;
                radChart2.Legend.Appearance.Dimensions.AutoSize = false;
                radChart2.Legend.Appearance.Dimensions.Width = 200;
                radChart2.Legend.Appearance.Dimensions.Height = 300;
                radChart2.Legend.Appearance.ItemTextAppearance.Position.Auto = true;
                radChart2.Legend.Appearance.ItemAppearance.
                radChart2.Legend.Visible = true;

    Thanks,

    Víctor.

  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 22 Mar 2011 Link to this post

    Hi Víctor,

    You can use our Automatic Text-wrapping feature and set:
    RadChart1.Legend.Appearance.ItemTextAppearance.AutoTextWrap = true;

    OR you can turn on the RadChart's AutoTextWrap property so that all chart elements will be wrapped.

    This is demonstrated in our demo with full source code.

    All the best,
    Evgenia
    the Telerik team
Back to Top