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