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

Problem by RadChart heigth setting

1 Answer 67 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
SCT
Top achievements
Rank 1
SCT asked on 29 Sep 2011, 12:33 PM
Dear Telerik Team,

we would like to ask how to strongly define RadChart's heigth. The heigth is set up in according to the size of chart's legend currently. Our chart has 192 series, in other words 192 items in the legend. The heigth of the chart is adjusted to the heigth of the legend regardless to the fact whether the legend is hidden or shown bellow. Here's our code snippet of the RadChart settings:

                radChart.ClearSkin();

                radChart.Skin = Skin;

                radChart.SeriesOrientation = ((RadChartEntity)Session[radChart.ID]).Orientation;

                radChart.AutoLayout = true;

                radChart.PlotArea.Appearance.Dimensions.Width = 500;

                radChart.PlotArea.Appearance.Dimensions.Height = 500;

                radChart.PlotArea.EmptySeriesMessage.TextBlock.Text = "No data";

                radChart.PlotArea.XAxis.IsZeroBased = false;

                radChart.PlotArea.XAxis.AutoScale = false;

                radChart.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.CompositionType = LabelItemsCompositionTypes.RowImageText;

                radChart.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Top;

                radChart.Appearance.FillStyle.FillType = FillType.Solid;

                radChart.Appearance.TextQuality = TextQuality.ClearTypeGridFit;

                radChart.Appearance.Border.Visible = false;

                radChart.Legend.Appearance.ItemTextAppearance.MaxLength = 20;

                radChart.Legend.Appearance.Position.AlignedPosition = AlignedPositions.TopRight;

                //radChart.Legend.Appearance.Overflow = Overflow.Row;

                radChart.ChartTitle.Appearance.Position.AlignedPosition = AlignedPositions.TopLeft;

                radChart.ChartTitle.Appearance.Position.Auto = false;

 

Let us also remark, the heigth of the RadChart equals to 600px a the width of the RadChart equals to 1000px.

<telerik:RadChart ID="radChart" runat="server" Height="600px" Width="1000px" EnableViewState="false">

                </telerik:RadChart>



We attached the image of the chart for the illustration as well.
We'll be very grateful for any suggestions about solving such the problem.

Kind regards,
SCT

1 Answer, 1 is accepted

Sort by
0
SCT
Top achievements
Rank 1
answered on 29 Sep 2011, 01:23 PM
.... the problem has been resolved, we've found the error at our side.

SCT
Tags
Chart (Obsolete)
Asked by
SCT
Top achievements
Rank 1
Answers by
SCT
Top achievements
Rank 1
Share this question
or