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

How to limit max size of the legend?

1 Answer 88 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Archis Gore
Top achievements
Rank 1
Archis Gore asked on 22 Mar 2010, 11:33 AM
I have a scenario where I would like autolayout to work as it is, however, the legend, if it becomes too big, occupies all space on the chart. I would like to set a max limit for the legend height such as "30%" or something so that beyond a certain point, I want the chart to be fairly visible, even if it clips the legend.

If possible, can the legend be made scrollable?

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 25 Mar 2010, 09:31 AM
Hi Archis Gore,

Unfortunately, using the AutoLayout property set to true does no allow you to specify the legend's dimensions. We would recommend you to use Autolayout = false and set the legend size by hand. here is a sample code:
RadChart1.AutoLayout = false;
RadChart1.Legend.Appearance.Dimensions.AutoSize = false;
RadChart1.Legend.Appearance.Dimensions.Height = 100;
RadChart1.Legend.Appearance.Dimensions.Width = 75;

Hope this will help.

Greetings,
Velin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart (Obsolete)
Asked by
Archis Gore
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or