Using Logarithmic TrendFunction
Posted: 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:
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
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();
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