TrendlineCollection
Contents
[
Hide
]TrendlineCollection class
Represents a collection of all the Trendline objects for the specified data series.
class TrendlineCollection;
Methods
Method | Description |
---|---|
get(number) | Gets a Trendline object by its index. |
add(TrendlineType) | Adds a Trendline object to this collection with specified type. |
add(TrendlineType, string) | Adds a Trendline object to this collection with specified type and name. |
getCount() | Gets the number of elements contained in. |
get(number)
Gets a Trendline object by its index.
get(index: number) : Trendline;
Parameters:
Parameter | Type | Description |
---|---|---|
index | number |
Returns
add(TrendlineType)
Adds a Trendline object to this collection with specified type.
add(type: TrendlineType) : number;
Parameters:
Parameter | Type | Description |
---|---|---|
type | TrendlineType | Trendline type. |
Returns
Trendline object index.
add(TrendlineType, string)
Adds a Trendline object to this collection with specified type and name.
add(type: TrendlineType, name: string) : number;
Parameters:
Parameter | Type | Description |
---|---|---|
type | TrendlineType | Trendline type. |
name | string | Trendline name. |
Returns
Trendline object index.
getCount()
Gets the number of elements contained in.
getCount() : number;