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

Problem in Telerik Reporting Chart PlotArea Height

1 Answer 130 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Binyam
Top achievements
Rank 1
Binyam asked on 27 May 2011, 09:49 PM

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.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 01 Jun 2011, 10:00 AM
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.

Tags
Chart (Obsolete)
Asked by
Binyam
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or