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.
Unfortunately, activation email could not send to your email. Please try again.

Logarithmic values on line chart

Thread ID:

Created:

Updated:

Platform:

Replies:

81329 May 19,2009 05:45 AM Jul 26,2012 12:07 AM WPF 5
loading
Tags: Chart
Matthew Thomas
Asked On May 19, 2009 05:45 AM

Hi,

I have been trying to make use of the logarithmic axis functionality in syncfusion chart. I'm using values in the range 1e-9 and 1e-5 and plotting them on a line chart. The line chart plots correctly however the axes are not displayed correctly. I have set the IsLogarithmic property to true and the Logarithmic base to 10. The results are values in the range 0.001 - 1 floating above the chart and no values on the axis below this.

I get the same results setting the IsAutoSetRange or defining the range manually.

Any help will be much appreciated.

Regards,

Matthew




Pavithra J [Syncfusion]
Replied On May 20, 2009 09:05 AM

Hi Mathew,

Thanks for your interest in Syncfusion products.

Since you need exponential values to be displayed in Secondary axis, kindly set Math.E as LograthimicBase value.

Below given code snippet illustrates setting the same.

area.SecondaryAxis.LogarithmicBase = Math.E;

Please let us know if you have further queries.

Regards,
Pavithra.J

Matthew Thomas
Replied On May 21, 2009 03:34 AM

Setting the logarithmic base to Math.E does not help and is also not what is desired as I want the scale displayed split into powers of 10 (i.e. with a logarithm of base 10 as I stated in my first post). It should be made clear that the chart appears to plot correctly although there is an error with the display of the values on the axis. Is it possible the formatting of the axis needs changing?

Regards,

Matthew

Pavithra J [Syncfusion]
Replied On May 22, 2009 02:38 AM

Hi Matthew,

Thanks for your interest in Syncfusion products.

For any point if the Y-Value is below 0 (Zero), then our Chart Control will plot the graph in the negative half. Obviously the value returned by exp(-9) is below zero and hence the values are plotted in the negative half.

Please refer to the attached sample from the below given link that illustrates this behavior.

Logarithmic Sample

Please let us know if you have further queries.

Regards,
Pavithra.J

Sudharsini Ravikumar
Replied On July 18, 2012 06:34 PM

The link is broken. Could you please let me download the logrithmic sample? Thanks.

Michael Prabhu M [Syncfusion]
Replied On July 26, 2012 12:07 AM

Hi Sudharsini Ravikumar,

Thanks for your interest in Syncfusion Products.

 

The link for the sample which you have asked for has been expired, however we have created a new sample for you. To enable logarithmic values you have to set the ChartAxis ValueType Property to Logarithmic and LogarithmicBase property to your desired log base as in below code snippet.

 

Code Snippet [Xaml]

 

<syncfusion:ChartAxis  ValueType=”Logarithmic” LogarithmicBase=”10”/>

 

Code Snippet [C#]

 

Chart1.Areas[0].SecondaryAxis.ValueType= ChartValueType.Logarithmic;

Chart1.Areas[0].SecondaryAxis.LogarithmicBase=10;

 

We also like to inform you that we have enhanced the Logarithmic feature in our upcoming Volume 3 Release (2012). Please create a direct track incident to know more about this enhancement in our upcoming release.

 

Please let us know if you have any concerns.

 

Thanks

Michael Prabhu.

 



10738_be18e8c2.zip

CONFIRMATION

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.

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.

;