Represents a [[Series]] trendline.
Constructors
Section titled "Constructors"Trendline
new Trendline(a: TrendlineCollection): Trendline Returns Trendline
Properties
Section titled "Properties"$t: Type Accessors
Section titled "Accessors"backward
Section titled "backward"Specifies the number of periods or units by which the trendline extends backward.
get backward(): number
Returns number
set backward(a: number): void Parameters
- a:
number
Returns void
chart
Section titled "chart"Inherited from: ChartObject
forward
Section titled "forward"Specifies the number of periods or units by which the trendline extends forward.
get forward(): number
Returns number
set forward(a: number): void Parameters
- a:
number
Returns void
intercept
Section titled "intercept"Specifies the value axis intercept for the trendline.
get intercept(): number | null
Returns number | null
set intercept(a: number | null): void Parameters
- a:
number | null
Returns void
label
Section titled "label"Returns or sets a [[TrendlineLabel]] instance which determines the text and appearance of the trendline label.
get label(): TrendlineLabel
Returns TrendlineLabel
legendEntry
Section titled "legendEntry"Returns a [[legendEntry]] instance which determines the appearance of this trendline's appearance in the [[WorksheetChart.legend]].
get legendEntry(): LegendEntry
Returns LegendEntry
Returns or sets a [[TrendlineLine]] instance which controls the color and width of the trendline.
get line(): TrendlineLine
Returns TrendlineLine
Specifies the name of the trendline.
get name(): string
Returns string
set name(a: string): void Parameters
- a:
string
Returns void
order
Section titled "order"Specifies the order/degree of the polynomial function which defines the trendline. Applicable only when the [[trendlineType]] property is set to Polynomial.
get order(): TrendlinePolynomialOrder
Returns TrendlinePolynomialOrder
owner
Section titled "owner"Inherited from: ChartObject
returns this object's owner. (read-only) The owner or null if this object is owned directly by the Chart
get owner(): ChartObject
Returns ChartObject
period
Section titled "period"Specifies the period for a moving-average trendline. Applicable only when the [[trendlineType]] property is set to MovingAverage.
get period(): number
Returns number
set period(a: number): void Parameters
- a:
number
Returns void
sheet
Section titled "sheet"Inherited from: ChartObject
trendlineType
Section titled "trendlineType"Specifies the type of trendline, i.e., linear, exponential, polynomial, etc.
get trendlineType(): TrendlineType
Returns TrendlineType
workbook
Section titled "workbook"Inherited from: ChartObject
worksheet
Section titled "worksheet"Inherited from: ChartObject