Manually scale a log scale axis

5 posts, 0 answers
  1. Stuart
    Stuart avatar
    30 posts
    Member since:
    Jun 2010

    Posted 08 Jun 2010 Link to this post


    I'm trying to draw some log charts but the maximum scale used is too wide for my purposes and I would like to reduce it. I have tried the following but this just generates a very weird scale with loads of ticks saying 'Infinity'

    <telerik:AxisY IsLogarithmic="True" AutoRange="False" MinValue="1" MaxValue="2000" Step="100"/>  

    Does anyone know what I should use instead?

  2. Nikolay
    Nikolay avatar
    397 posts

    Posted 14 Jun 2010 Link to this post

    Hi Stuart,

    Thank you for bringing this to our attention. It does seem like there is a problem with the Logarithmic scale when the Axis AutoRange is set to False and Min, Max and Step values are set manually. Our developers will investigate the issue and provide a fix for it in one of the future versions of the control.

    Your telerik points have been updated.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. John
    John avatar
    1 posts
    Member since:
    Mar 2011

    Posted 03 Mar 2011 Link to this post


    Has there been any update on the issue with controlling the logarithmic y-axis scale? I'm having problems plotting values between zero and one. The scale is not responsive when setting the MinValue and the MaxValue and making the AutoRange=false. However, when setting AutoRange=true, the scale starts at 1, which is not suitable for my application. All the other log charting tools I have worked with support values less than 1 and should render ticks at regular intervals (0.1, 0.01, 0.001, etc.).

    Best regards,

  4. Courouble Damien
    Courouble Damien avatar
    54 posts
    Member since:
    Aug 2009

    Posted 07 Mar 2011 Link to this post

    Hi guys,

    I was wondering if this bug has been fixed since june 2010, 
    I'm running the latest version of the telerik bins (2010.3.1314.10.40) and i'm having the same behavior : I'm not able to log an axis y with autorange set to false.

    Thank you,

  5. Nikolay
    Nikolay avatar
    397 posts

    Posted 09 Mar 2011 Link to this post


    We can confirm this issue has been fixed, however, when setting manually the Y axis scale you should not set the absolute values but the log ones. For example setting the following range :
    RadChart1.DefaultView.ChartArea.AxisY.AutoRange = false;
    RadChart1.DefaultView.ChartArea.AxisY.MinValue = 0;
    RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 3;
    RadChart1.DefaultView.ChartArea.AxisY.Step = 1;
     would result in a Y axis scale with values : 1, 10, 100 and 1000.

    For values less than 1 it should be set in the following manner :
    RadChart1.DefaultView.ChartArea.AxisY.AutoRange = false;
    RadChart1.DefaultView.ChartArea.AxisY.MinValue = -2;
    RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 2;
    RadChart1.DefaultView.ChartArea.AxisY.Step = 1;

    which would result in values of : 0.01, 0.1, 1, 10 and 100.

    Hope this helps.

    Kind regards,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top