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

telerik:RadialScale show incorrect tick for Logarithmic

3 Answers 47 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
yong
Top achievements
Rank 1
yong asked on 27 Jul 2011, 06:18 PM
When i put following value , Logarithmic show correct tick
RadialScale.min=1
RadialScale.max=100
RadialScale.IsLogarithmic=true
RadialScale.LogarithmicBase=10

But when I change the min value to 0.1, and max value to 10, it's middle value should be 1, Because the result of log 10 is: log10(0.1)=-1, Log10(1)=0,Log10(10)=1, but RadialScale didn't do that , it always show 1 on the left side,
Also same for Min value = -0.01, max value = 100, RadialScale still show incorrect tick, looks it is a bug of RadialScale.

Can you check that?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 01 Aug 2011, 08:08 AM
Hello Yong,

The logarithmic scale works as designed. It has a different type than you describe. It stretches values of the scale near the minimum to detail small values. It represents any range as [0...log10(length of range)] instead of [log10(Min)...log10(Max)].

Greetings,
Andrey Murzov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
yong
Top achievements
Rank 1
answered on 23 Aug 2011, 09:51 PM
Thanks for your reply, but I still couldn't solve the problem,can you just try following code in a gauge? 
RadialScale.min=0.1
RadialScale.max=10
RadialScale.IsLogarithmic=true
RadialScale.LogarithmicBase=10

The minimum in the Radialscale is -1, maximum is 1, these is right in Radialscale, the center value should be 0,but it is not 0 in fact.
0
Andrey
Telerik team
answered on 26 Aug 2011, 12:29 PM
Hi Yong,

The exponential mode in RadGauge uses absolutely different approach to calculate scale value distribution. It is not the same as the one you are looking for.  

Kind regards,
Andrey Murzov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Gauge
Asked by
yong
Top achievements
Rank 1
Answers by
Andrey
Telerik team
yong
Top achievements
Rank 1
Share this question
or