IChartTrendline Interface
This class holds a definition for a trendline.
Syntax
Unit: FlexCel.Core
IChartTrendline = interface(IInterface);
Properties
Name | Description |
---|---|
Name | Name for the trendline. Make it null to make it automatic. |
LineOptions | Properties of the line, like the color or width. |
TrendlineType | Type of trendline. |
Order | Integer between 2 and 6 indicating the order of the polynomial. This property only applies if the TrendlineType is TChartTrendlineType.Polynomial. |
Period | Period for the moving average. This property only applies if the TrendlineType is TChartTrendlineType.MovingAverage. |
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 |
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. |
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="TrendlineType"/> of TChartTrendlineType.Exponential, TChartTrendlineType.Linear or TChartTrendlineType.Polynomial |
DisplayEquation | Determines if the trendline equation is displayed on the chart. |
DisplayRSquared | Determines if the value of R-squared is displayed on the chart. |
LineLabel | Determines if the value of R-squared is displayed on the chart. |