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

Remove Title Space

1 Answer 151 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 17 Apr 2008, 07:45 PM
I am trying to build a chart without a title, but I cannot get the space at the top of the chart to disappear, even when no text is present.  I have tried setting the following properties without any luck:

rc.ChartTitle.Visible = false;
rc.ChartTitle.Appearance.Dimensions.Height = Unit.Pixel(0);
rc.ChartTitle.Appearance.Dimensions.Margins.Bottom = Unit.Pixel(0);
rc.ChartTitle.Appearance.Dimensions.Margins.Top = Unit.Pixel(0);
rc.ChartTitle.TextBlock.Visible = false;
rc.ChartTitle.TextBlock.Appearance.Dimensions.Height = Unit.Pixel(0);
rc.PlotArea.Appearance.Dimensions.Margins.Top = Unit.Pixel(0);

Is there even a way to remove the title area?  I'm working with a small space in my application and need as much space as possible for the plot...not a section of white space.  Does anyone have any suggestions?

Thanks in advance,
Matt

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 18 Apr 2008, 03:07 PM
Hi Matt,

You should be able to remove the whitespace at the top with the described code as it is controlled by the top margin value of the plot area. Attached is a sample application of our observations.

Alternatively, for the Q1 2008 release we introduced new feature for RadChart -- AutoLayout. The AutoLayout functionality instructs the control to perform layout arrangement automatically for optimal utilization of the whole chart area and ensures that all chart elements are fully readable and do not overlap with one another. To enable this feature set the RadChart.AutoLayout to True. You can find more information here and online example here.


Hope this helps.


Greetings,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Matt
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or