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

Pie Plot Area Width

1 Answer 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Michel Laforce
Top achievements
Rank 1
Michel Laforce asked on 07 Oct 2011, 01:59 PM
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

<

 

PlotArea>

 

 

<Appearance Dimensions-Width="300">

 

 

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

 

 

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

 

 

</Appearance>

 

 

</PlotArea>

How do I resolve this

Thanks

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 11 Oct 2011, 03:00 PM
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;  

Greetings,
Evgenia
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
Tags
Chart (Obsolete)
Asked by
Michel Laforce
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or