Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
An interface describing the data returned by calling chartTrendline.toJSON()
.
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. |
Represents the number of periods that the trendline extends backward.
backwardPeriod?: number;
number
Represents the formatting of a chart trendline.
format?: Excel.Interfaces.ChartTrendlineFormatData;
Represents the number of periods that the trendline extends forward.
forwardPeriod?: number;
number
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;
any
Represents the label of a chart trendline.
label?: Excel.Interfaces.ChartTrendlineLabelData;
Represents the period of a chart trendline. Only applicable to trendlines with the type MovingAverage
.
movingAveragePeriod?: number;
number
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;
string
Represents the order of a chart trendline. Only applicable to trendlines with the type Polynomial
.
polynomialOrder?: number;
number
True if the equation for the trendline is displayed on the chart.
showEquation?: boolean;
boolean
True if the r-squared value for the trendline is displayed on the chart.
showRSquared?: boolean;
boolean
Represents the type of a chart trendline.
type?: Excel.ChartTrendlineType | "Linear" | "Exponential" | "Logarithmic" | "MovingAverage" | "Polynomial" | "Power";
Excel.ChartTrendlineType | "Linear" | "Exponential" | "Logarithmic" | "MovingAverage" | "Polynomial" | "Power"
Office Add-ins feedback
Office Add-ins is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in