Trendlines Collection Object
A collection of all the Trendline objects for the specified series. Each Trendline object represents a trendline in a chart. A trendline shows the trend, or direction, of data in a series.
Using the Trendlines Collection
Use the Trendlines method to return the Trendlines collection. The following example displays the number of trendlines for series one in the chart.
|
Use the Add method to create a new trendline and add it to the series. The following example adds a linear trendline to series one in the chart.
|
Use Trendlines(index), where index is the trendline's index number, to return a single TrendLine object. The following example changes the trendline type for series one in the chart. If the series has no trendline, this example will fail.
|
The index number denotes the order in which the trendlines are added to the series.
|
|