Table of Contents

TChartTrendline Class

This class holds a definition for a trendline.

Syntax

Namespace: FlexCel.Core

public class TChartTrendline

Properties

Name Description
Backward The number of categories (or units on a scatter chart) that the trendline extends before the data for the series.
If the chart is not scattered, this value must be 0 or 0.5.
DisplayEquation Determines if the trendline equation is displayed on the chart.
DisplayRSquared Determines if the value of R-squared is displayed on the chart.
Forward The number of categories (or units on a scatter chart) that the trendline extends after the data for the series.
This number must be bigger or equal to 0
Intercept This property sets where the trendline crosses the x-axis. If null, the crossing point will be automatically calculated.
Only applies for see cref=​"Trendline​Type"​/> of TChartTrendline​Type.​Exponential, TChartTrendline​Type.​Linear or TChartTrendline​Type.​Polynomial
LineLabel Determines if the value of R-squared is displayed on the chart.
LineOptions Properties of the line, like the color or width.
Name Name for the trendline. Make it null to make it automatic.
Order Integer between 2 and 6 indicating the order of the polynomial. This property only applies if the TrendlineType is TChartTrendline​Type.​Polynomial.
Period Period for the moving average. This property only applies if the TrendlineType is TChartTrendline​Type.​Moving​Average.
TrendlineType Type of trendline.