Remove Title Space

Thread is closed for posting
2 posts, 0 answers
  1. Matt
    Matt avatar
    13 posts
    Member since:
    Apr 2008

    Posted 17 Apr 2008 Link to this post

    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,
  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 18 Apr 2008 Link to this post

    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.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top