Interface: TrendlineOptions
trendlineOptions: plotly.py's trendline_options in camelCase. Which keys apply depends on the kind; others are rejected.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
addConstant? | readonly | boolean | ols: fit an intercept (default true); false fits a line through the origin. |
adjust? | readonly | boolean | ewm: adjusted weights (default true). |
alpha? | readonly | number | ewm: smoothing factor α. |
center? | readonly | boolean | rolling: center the windows. |
com? | readonly | number | ewm: center of mass. |
frac? | readonly | number | lowess: share of the points in each local fit, 0–1. Default 0.6666666 (px). |
function? | readonly | WindowFunction | rolling / expanding / ewm: the statistic, by pandas' method name (default 'mean'), or for rolling / expanding a function of each window's present values. |
functionArgs? | readonly | Readonly<Record<string, unknown>> | Arguments of the statistic: ddof of std / var, std of a 'gaussian' window. |
halflife? | readonly | number | ewm: half-life, in observations. |
ignoreNa? | readonly | boolean | ewm: missing values do not age the weights. |
logX? | readonly | boolean | ols: fit against log10(x) (x must be positive). |
logY? | readonly | boolean | ols: fit log10(y) and draw 10^fit (y must be positive). |
minPeriods? | readonly | number | rolling / expanding / ewm: present values a result needs. |
span? | readonly | number | ewm: span. |
window? | readonly | string | number | rolling: observations per window, or a time span ('7D', '12h') over dates on x. |
winType? | readonly | "boxcar" | "triang" | "gaussian" | rolling: window weights, 'boxcar', 'triang' or 'gaussian'. |