Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeChartTrendline

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Describes a series trendline that chart renderers fit to the series values and draw over the plot.

Inheritance

  • object
  • OfficeChartTrendline

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public OfficeChartTrendline(OfficeChartTrendlineType type, int? order = null, int? period = null, bool displayEquation = false, bool displayRSquared = false, OfficeColor? color = null, OfficeLength? width = null, double? intercept = null) #

Creates a trendline description.

Parameters

type OfficeIMO.Drawing.OfficeChartTrendlineType required
Regression or averaging type.
order int? = null optional
Polynomial order from 2 to 6; required for OfficeChartTrendlineType.Polynomial.
period int? = null optional
Moving-average period of at least 2; required for OfficeChartTrendlineType.MovingAverage.
displayEquation bool = false optional
Whether the fitted equation is shown beside the line.
displayRSquared bool = false optional
Whether the coefficient of determination is shown beside the line.
color OfficeIMO.OfficeColor? = null optional
Optional line colour; the series colour is used when omitted.
width OfficeIMO.OfficeLength? = null optional
Optional physical line width.
intercept double? = null optional
Optional fixed y-intercept for linear, polynomial and exponential fits.

Properties

public OfficeChartTrendlineType Type { get; } #

Regression or averaging type.

public int? Order { get; } #

Polynomial order, or null for other types.

public int? Period { get; } #

Moving-average period, or null for other types.

public bool DisplayEquation { get; } #

Whether the fitted equation is shown beside the line.

public bool DisplayRSquared { get; } #

Whether the coefficient of determination is shown beside the line.

public OfficeColor? Color { get; } #

Optional line colour.

public OfficeLength? Width { get; } #

Optional physical line width.

public double? Intercept { get; } #

Optional fixed y-intercept.