Problem in Telerik Reporting Chart PlotArea Height

Thread is closed for posting
2 posts, 0 answers
  1. Binyam
    Binyam avatar
    1 posts
    Member since:
    May 2011

    Posted 27 May 2011 Link to this post

    Hi, I'm using radChart for reporting purpose, but setting PlotArea height from code behind seems not working.

    e.g

      <telerik:RadChart ID="radChart" AutoLayout="false" runat="server">
        </telerik:RadChart>

    ...

     radChart.Appearance.Dimensions.Height = Telerik.Charting.Styles.Unit.Pixel(200);
     radChart.Width = System.Web.UI.WebControls.Unit.Pixel(1020);

    ...

     radChart.PlotArea.Appearance.Dimensions.Height = Telerik.Charting.Styles.Unit.Pixel(150);





    ...
     radChart.PlotArea.XAxis.AutoScale = false;
     radChart.PlotArea.XAxis.AddItem(axisItem);
     radChart.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Sample";
     radChart.PlotArea.XAxis.Visible = ChartAxisVisibility.True;
     radChart.PlotArea.XAxis.AxisLabel.Visible = true;
     radChart.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Normal;     

     x-axis labels("Sample") are cut off.

  2. Sia
    Admin
    Sia avatar
    745 posts

    Posted 01 Jun 2011 Link to this post

    Hi Binyam,

    You do not need to set height to the PlotArea, please try to set height only for RadChart and make the axis label visible as follows:
    radChart.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Sample";
    radChart.PlotArea.XAxis.AxisLabel.Visible = true;
     
    radChart.Appearance.Dimensions.Height = Telerik.Charting.Styles.Unit.Pixel(100);

    Please try this and let me know how it goes.

    Kind regards,
    Sia
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top