Removes the trendline from its series.
Optionaloptions: ITransaction.OperationOptionsReturns how far the line runs before the first point.
Returns the chart the element is part of.
Returns what the element is. A series' marker and a point's are both 'marker', and the
major and minor gridlines both 'gridlines'; their paths tell them apart.
Returns the fit: the numbers the label shows, unrounded. null for a moving average, or where
the points allow no fit.
Returns how far the line runs past the last point, in x: in categories on a category axis.
Returns the y the line is drawn through at x = 0: the one set, else a linear, exponential or
polynomial fit's (null for the other types, which have none, or where the points allow no
fit).
Returns the label of the fit's equation and R².
Returns a moving average's period, in points; 2 for another type.
Returns the trendline's entry in the legend: the one set, else Excel's, Linear (Sales).
Returns the element this one is part of: a point's series, a gridline's axis, a legend entry's legend. The parts at the top (the title, the legend, the plot area, an axis, a series, a group) are the chart area's; the chart area has none.
Returns where the element is in its chart, as IChart.getElement takes it.
A path is its parts' names joined by /, and does not change while the part is there:
chartArea, title, legend, legend/entries/<n>, plotArea, dataTable, and
dataLabels (every series' at once);axes/<primary|secondary>/<category|value|series>, and an axis's …/title,
…/majorGridlines and …/minorGridlines;series/<key>, and a series' …/marker, …/dataLabels, …/errorBars/<x|y>,
…/trendlines/<n>, …/trendlines/<n>/label, …/points/<n>, …/points/<n>/marker and
…/points/<n>/dataLabel;groups/<n>, and a group's …/upDownBars, …/hiLoLines, …/dropLines and …/seriesLines.A series' key is its index in the file (c:idx), which an edit does not change; its place in
the plot order can change. A point, a trendline, a legend entry and a group are named by their
place, from 0: when one before it is removed, the path names the one that took its place.
Returns a polynomial's order, 2 to 6; 2 for another type.
Returns whether the label shows the fit's equation.
Returns whether the label shows the fit's R².
Returns what the line is drawn with (Office Scripts' getFormat().getLine()): reads resolve to
Excel's dotted 1.5 pt line in the series' color where it states none.
Returns the kind of line.
Returns whether the intercept is the fit's own rather than set.
Returns whether the name is Excel's own rather than set.
Sets how far the line runs before the first point.
Optionaloptions: ITransaction.OperationOptionsSets how far the line runs past the last point; 0 for not at all. On a category axis a run adds unlabeled categories.
Optionaloptions: ITransaction.OperationOptionsHolds the fit to intercept at x = 0, or 'auto' to let it go. Excel keeps an intercept on
a linear, exponential or polynomial fit and a moving average; on a logarithmic or power fit
it changes nothing, as in Excel.
Optionaloptions: ITransaction.OperationOptionsSets a moving average's period: 2 to one fewer than the series' points.
Optionaloptions: ITransaction.OperationOptionsSets the trendline's entry in the legend; null for Excel's own.
Optionaloptions: ITransaction.OperationOptionsSets a polynomial's order, 2 to 6. On another type it changes nothing, as in Excel.
Optionaloptions: ITransaction.OperationOptionsSets whether the label shows the fit's equation; showing either part shows the label.
Optionaloptions: ITransaction.OperationOptionsSets whether the label shows the fit's R².
Optionaloptions: ITransaction.OperationOptionsSets the kind of line. A polynomial starts at order 2 and a moving average at period 2; the other kind's option goes, and a set intercept stays only on a type that takes one.
Optionaloptions: ITransaction.OperationOptionsSets several properties of the trendline at once, as one step to undo.
Optionaloptions: ITransaction.OperationOptions
A line fitted to a series' points, or their moving average, with the fit's equation and R² as an optional label.