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

Chart Axis clipping

1 Answer 55 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Prescott Nasser
Top achievements
Rank 1
Prescott Nasser asked on 20 Jan 2012, 05:45 PM
Hi,

For various reasons I can't use the nice GUI designer, so I'm trying to format the chart via codebehind, but I'm having two issues I can't seem to solve.

1. The YAxis (the names in the image), is clipping, I can't figure out how to fix that. Note that this is a custom Axis - AutoScale = false.
2. There is a large space between the legend and the actual chart, I can't seem to figure out which property to set to fix this.

Charting 2011.2.915.40

Thanks
Prescott

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 23 Jan 2012, 09:21 AM
Hello,

One possible option to handle the desired setup, is to manipulate the margins for the chart plotarea, and the legend. These are accessible through:

RadChart1.PlotArea.Appearance.Dimensions.Margins
RadChart1.Legend.Appearance.Dimensions.Paddings

I hope this gets you started properly.

Greetings,
Yavor
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
Prescott Nasser
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or