We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Creating YAxis with Logarithmic scale from code behind doesn't seem to be working.

Thread ID:





110542 Aug 11,2013 09:50 AM UTC Aug 12,2013 12:46 PM UTC WPF 1
Tags: Chart
Suneelkumar Ch
Asked On August 11, 2013 09:50 AM UTC

I tried creating YAxis with logarithmic scale from code behind with the following setting, however its not working. 

 chart1.Areas[0].SecondaryAxis.LogarithmicRange = new DoubleRange(0, 10000);
 chart1.Areas[0].SecondaryAxis.LogarithmicInterval = 1;
 chart1.Areas[0].SecondaryAxis.ValueType = ChartValueType.Logarithmic;
 chart1.Areas[0].SecondaryAxis.LogarithmicBase = 10;                                  

Please find attached screenshot of resultant chart ui for above settings.

From the samples from Syncfusion, it seems logarithmic scales are working if these properties are set in XAML.

A quick help would be highly appreciated.                                  . 


Muneesh Kumar G [Syncfusion]
Replied On August 12, 2013 12:46 PM UTC

Hi SuneelKumar,

Thanks for using Syncfusion products,

We are able to reproduce the reported issue. We would like to inform you that this is not an issue if we need to set Custom range(LograthamicRange) have to set IsAutoSetRange as false as per the below code snippet.

Code Snippet[C#]:
 chart1.Areas[0].SecondaryAxis.LogarithmicRange=new Syncfusion.Windows.Chart.DoubleRange(1,100000000000);

We have prepared a sample based on this and you can find the sample under the following location:

Please let us know if you have any queries.

Muneesh Kumar G.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon