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

Manually scale a log scale axis

4 Answers 67 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 08 Jun 2010, 03:22 PM

Hi

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?

Cheers

4 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 14 Jun 2010, 12:13 PM
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.

Regards,
Nikolay
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.
0
John
Top achievements
Rank 1
answered on 03 Mar 2011, 11:35 PM
Hi,

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,
John

0
Courouble Damien
Top achievements
Rank 1
answered on 07 Mar 2011, 11:15 AM
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,

Damien
0
Nikolay
Telerik team
answered on 09 Mar 2011, 09:40 AM
Hello,

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,
Nikolay
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!
Tags
Chart
Asked by
Stuart
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
John
Top achievements
Rank 1
Courouble Damien
Top achievements
Rank 1
Share this question
or