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

Problem about adjust legend item text

1 Answer 65 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Víctor
Top achievements
Rank 1
Víctor asked on 17 Mar 2011, 10:23 AM
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.

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 22 Mar 2011, 09:23 AM
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
Tags
Chart (Obsolete)
Asked by
Víctor
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or