Using Logarithmic TrendFunction

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
JonM
Newbie
Newbie
Posts: 23
Joined: Tue Sep 14, 2004 4:00 am
Location: UK

Using Logarithmic TrendFunction

Post by JonM » Tue Nov 03, 2015 2:22 pm

Hi

I'm trying to draw a Line using the Logarithmic style TrendFunction but cannot get anything to display.

This is the code that I am using:

Code: Select all

TrendFunction logFunction = new TrendFunction();
logFunction.TrendStyle = TrendStyles.Logarithmic;
		
Line logLine = new Line(chartInstance.Chart) {Function = logFunction, DataSource = pointSeries};
logLine.Color = Color.Blue;

logLine.CheckDataSource();
Where pointSeries is a Series of type Points - I have ensured that all of the data values are > 0

With the code above, and the same series/data I can get a standard linear line drawing by removing the line of code that sets the TrendStyle to Logarithmic.

Have you any pointers as to what I may be missing? I'm getting no errors or exceptions, the line just simply doesn't appear.

Many Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Using Logarithmic TrendFunction

Post by Christopher » Wed Nov 04, 2015 10:00 am

Hello,
JonM wrote: Have you any pointers as to what I may be missing? I'm getting no errors or exceptions, the line just simply doesn't appear.
There is an example you can look at in the features demo which you can run from:
%programfiles(x86)%\Steema Software\Steema TeeChart for .NET 2015 4.1.2015.08060\Examples\DemoProject\bin\ExecutableDemo\TeeChartNetExamples.exe

Under the "All Features" tab -> Welcome !\Functions\Extended\Trendline
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

JonM
Newbie
Newbie
Posts: 23
Joined: Tue Sep 14, 2004 4:00 am
Location: UK

Re: Using Logarithmic TrendFunction

Post by JonM » Wed Nov 04, 2015 3:23 pm

Thank you - that is exactly what I need.

Post Reply