Excel.Interfaces.ChartTrendlineData interface
An interface describing the data returned by calling chartTrendline.toJSON()
.
Properties
backward |
Represents the number of periods that the trendline extends backward. |
format | Represents the formatting of a chart trendline. |
forward |
Represents the number of periods that the trendline extends forward. |
intercept | Represents the intercept value of the trendline. Can be set to a numeric value or an empty string (for automatic values). The returned value is always a number. |
label | Represents the label of a chart trendline. |
moving |
Represents the period of a chart trendline. Only applicable to trendlines with the type |
name | Represents the name of the trendline. Can be set to a string value, a |
polynomial |
Represents the order of a chart trendline. Only applicable to trendlines with the type |
show |
True if the equation for the trendline is displayed on the chart. |
show |
True if the r-squared value for the trendline is displayed on the chart. |
type | Represents the type of a chart trendline. |
Property Details
backwardPeriod
Represents the number of periods that the trendline extends backward.
backwardPeriod?: number;
Property Value
number
Remarks
format
Represents the formatting of a chart trendline.
format?: Excel.Interfaces.ChartTrendlineFormatData;
Property Value
Remarks
forwardPeriod
Represents the number of periods that the trendline extends forward.
forwardPeriod?: number;
Property Value
number
Remarks
intercept
Represents the intercept value of the trendline. Can be set to a numeric value or an empty string (for automatic values). The returned value is always a number.
intercept?: any;
Property Value
any
Remarks
label
Represents the label of a chart trendline.
label?: Excel.Interfaces.ChartTrendlineLabelData;
Property Value
Remarks
movingAveragePeriod
Represents the period of a chart trendline. Only applicable to trendlines with the type MovingAverage
.
movingAveragePeriod?: number;
Property Value
number
Remarks
name
Represents the name of the trendline. Can be set to a string value, a null
value represents automatic values. The returned value is always a string
name?: string;
Property Value
string
Remarks
polynomialOrder
Represents the order of a chart trendline. Only applicable to trendlines with the type Polynomial
.
polynomialOrder?: number;
Property Value
number
Remarks
showEquation
True if the equation for the trendline is displayed on the chart.
showEquation?: boolean;
Property Value
boolean
Remarks
showRSquared
True if the r-squared value for the trendline is displayed on the chart.
showRSquared?: boolean;
Property Value
boolean
Remarks
type
Represents the type of a chart trendline.
type?: Excel.ChartTrendlineType | "Linear" | "Exponential" | "Logarithmic" | "MovingAverage" | "Polynomial" | "Power";
Property Value
Excel.ChartTrendlineType | "Linear" | "Exponential" | "Logarithmic" | "MovingAverage" | "Polynomial" | "Power"
Remarks
Office Add-ins