# TrendLine Collection Editor

## Content



The **TrendLine Collection Editor** is used for adding or modifying TrendLines that approximate the data which the functions trend at design time. For more information on TrendLines see, [Working with TrendLines](/componentone/docs/win/online-chart2d/chartingdata/workingwithtrendline).

### To Access the TrendLine Collection Editor

1.  Right-click the **C1Chart** control and select **Properties** from its context menu.
2.  In the Properties window, expand the **ChartGroups** node, then expand the **Group0** or **Group1** node.
3.  Expand the **ChartData** node, then click on the **ellipsis** button next to the **TrendsList** property. The **TrendLine Collection Editor** appears.<br />![](https://cdn.mescius.io/document-site-files/images/70bd33a2-280e-4cc3-a1c0-7b827eceb8aa/imagesext/trendlinecollectioneditor.png)

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

Properties available in the TrendLine Collection Editor

DOC-SUMMARY-TAG-CLOSE

The following properties are available for the user in the **TrendLine Collection Editor** at design time or they can be used in the [TrendLine](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.html) class at run time:

**Misc Properties of the TrendLine Collection Editor**:

| **Members** | **Description** |
| --- | --- |
| [DataArray](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.DataArray.html) | Gets or sets the array of y values that is used for the trendline. |
| [LegendEntry](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.LegendEntry.html) | Gets or sets whether the trendline appears in the legend. |
| [Period](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.Period.html) | Gets or sets period for Moving Average trendline. |
| [RegressionOptions](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.RegressionOptions.html) | Gets the options for regression calculation. |
| [NumTerms](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionOptions.NumTerms.html) | Gets or sets the number of terms in regression equation. Only for polynomial and fourier trend lines. |
| [UseYIntercept](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionOptions.UseYIntercept.html) | Gets or sets whether the trend line uses Yintercept property. Only for polynomial trend line. |
| [YIntercept](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionOptions.YIntercept.html) | Gets or sets the y value at which trend line intercepts x =0 line. Only for polynomial trend line. |
| [Coeffs](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionStatistics.Coeffs.html) | Gets the coefficients of regression equation. |
| [DF](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionStatistics.DF.html) | Gets the degrees of freedom. |
| [F](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionStatistics.F.html) | Gets the F-observed(F-statistic) value. |
| [Rsq](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionStatistics.Rsq.html) | Gets the coefficient of determination(R-squared). |
| [Sey](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionStatistics.Sey.html) | Gets the standard error for the y estimate. |
| [Sse](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionStatistics.Sse.html) | Gets the sum of squares due to error. |
| [Ssr](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.RegressionStatistics.Ssr.html) | Gets the sum of squares due to regression. |
| [SeriesIndex](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.SeriesIndex.html) | Gets or sets the data series index that is used for trendline plotting. |
| [SeriesLabel](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.SeriesLabel.html) | Gets the data series label that is used for trendline plotting. |
| [Text](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ICustomTrendLine.Text.html) | Gets or sets the text that will be shown in legend. |
| [TrendLineType](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.TrendLineType.html) | Gets or sets the type of trendline. |

**Plot Properties of the TrendLine Collection Editor**:

| **Members** | **Description** |
| --- | --- |
| [ForecastBackward](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.ForecastBackward.html) | Gets or sets how long the trendline extends comparing series data minimum. |
| [ForecastForward](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.ForecastForward.html) | Gets or sets how long the trendline extends comparing series data maximum. |
| [LineStyle](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.LineStyle.html) | Gets or sets the line used to plot the TrendLine. |
| [Color](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartLineStyle.Color.html) | Gets or sets the color of the line. |
| [Pattern](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartLineStyle.Pattern.html) | Gets or sets the pattern of the line. |
| [Thickness](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartLineStyle.Thickness.html) | Gets or sets the thickness of the line. |
| [PlotLinesMethod](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.PlotLinesMethod.html) | Gets or sets the method of trendline plotting. |
| [PlotNumPoints](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.PlotNumPoints.html) | Gets or sets the number of points of trendline plotting. |
| [PlotOverData](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.PlotOverData.html) | Gets or sets whether the trendline is plotted over or behind data. |
| [Visible](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.TrendLine.Visible.html) | Gets or sets whether the trendline is visible. |

DOC-DETAILS-TAG-CLOSE

## See Also

[ValueLabel Collection Editor](/componentone/docs/win/online-chart2d/designtimesupport/c1chartcollectionedi/valuelabelcollection)