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

Y axis Scale attribute not working

1 Answer 44 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 01 May 2012, 04:10 PM
I have a chart which I am trying to get to fit in a specific width on a page, oriented horizontally. Everything is fine except for the Y axis, which has a scale of 1000. The numbers on the Y axis are running together. I think this would be fixed if I were able to set the scale to 2000 instead of 1000, but when I try to do so at runtime, the scale is set to 1000. Here is my code: 
RadChart1.Height = dt.Rows.Count * 50;
           RadChart1.DataSource = dt;
           RadChart1.PlotArea.XAxis.DataLabelsColumn = "Team";
            
           RadChart1.AutoLayout = true;
           RadChart1.PlotArea.YAxis.Step = 2000;
           RadChart1.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Horizontal;
           //RadChart1.AutoTextWrap = true;
           RadChart1.ChartTitle.TextBlock.Text = "Team Totals";
           RadChart1.Legend.Visible = false;
           RadChart1.DataBind();

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 02 May 2012, 03:25 PM
Hi Kyle,

 To be able to set custom range for the axis, you should turn off the AutoScale property and provide your own MinValue, MaxValue and Step. This is described in our documentation.

Regards,
Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Kyle
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or