Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can I have logarithmic interval for Y-Axis (Read 3356 times)
abhi dhotre
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Jul 12th, 2017
Can I have logarithmic interval for Y-Axis
Jul 31st, 2017 at 5:28pm
Print Post  
Hi,
I want Y-Axis of the graph to be of logarithmic interval, for eg : starts from 1, then 10, 100, 1000, 10000 and so on.

Thanks,
Abhi D  Smiley
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Can I have logarithmic interval for Y-Axis
Reply #1 - Jul 31st, 2017 at 6:26pm
Print Post  
Hi Abhi,

There's no built-in support for that at this time. You could try creating an adapter Series class whose GetValue method returns the base-10 logarithm of original series' value. This should draw logarithmic graphic, but coordinates on the axis won't match it. If you also want to show coordinates, I guess you could use custom data labels instead.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Can I have logarithmic interval for Y-Axis
Reply #2 - Aug 1st, 2017 at 12:18pm
Print Post  
Please find an example attached. You can pass your current series to the LogSeriesAdapter class to transform their values to logarithmic scale. The labels are replaced with logarithmic ones using a formatter assigned to barChart.YAxis.CustomFormat.

Regards,
Slavcho
  

LogChart.zip ( 10 KB | 353 Downloads )
Back to top
 
IP Logged
 
abhi dhotre
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Jul 12th, 2017
Re: Can I have logarithmic interval for Y-Axis
Reply #3 - Aug 1st, 2017 at 3:35pm
Print Post  
Thanks alot Slavcho.  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint