Class
OfficeChartTrendline
OfficeIMO.Drawing
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
- Property OfficeSeries.Trendline
Accepted by parameters 1
- Method OfficeSeries.WithTrendline
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
- Regression or averaging type.
- order int? = null
- Polynomial order from 2 to 6; required for OfficeChartTrendlineType.Polynomial.
- period int? = null
- Moving-average period of at least 2; required for OfficeChartTrendlineType.MovingAverage.
- displayEquation bool = false
- Whether the fitted equation is shown beside the line.
- displayRSquared bool = false
- Whether the coefficient of determination is shown beside the line.
- color OfficeIMO.OfficeColor? = null
- Optional line colour; the series colour is used when omitted.
- width OfficeIMO.OfficeLength? = null
- Optional physical line width.
- intercept double? = null
- Optional fixed y-intercept for linear, polynomial and exponential fits.
Inherited Methods
Properties
public OfficeChartTrendlineType Type { get; } #Regression or averaging type.
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.