Y axis Scale attribute not working

Thread is closed for posting
2 posts, 0 answers
  1. Kyle
    Kyle avatar
    11 posts
    Member since:
    Mar 2012

    Posted 01 May 2012 Link to this post

    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;
  2. Evgenia
    Evgenia avatar
    1396 posts

    Posted 02 May 2012 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top