Skip to content

Interface: RegressionOptions ​

Defined in: stats/charts.ts:16

Properties ​

band? ​

ts
optional band?: number;

Defined in: stats/charts.ts:25

Shade ±band·standard-error around an OLS fit (2 ≈ 95%). Ignored for LOESS, which has no closed-form interval here. Default 0 (no band).


bandColor? ​

ts
optional bandColor?: string;

Defined in: stats/charts.ts:31


bandwidth? ​

ts
optional bandwidth?: number;

Defined in: stats/charts.ts:27

LOESS neighbourhood as a fraction of the points, 0..1. Default 0.3.


color? ​

ts
optional color?: string;

Defined in: stats/charts.ts:30


method? ​

ts
optional method?: "ols" | "loess";

Defined in: stats/charts.ts:20

"ols" (default) fits a straight line; "loess" fits a local curve.


name? ​

ts
optional name?: string;

Defined in: stats/charts.ts:33


points? ​

ts
optional points?: number;

Defined in: stats/charts.ts:29

Samples along the fitted curve. Default 2 for OLS, 100 for LOESS.


renderType? ​

ts
optional renderType?: RenderType;

Defined in: stats/charts.ts:35


width? ​

ts
optional width?: number;

Defined in: stats/charts.ts:32


x ​

ts
x: ArrayLike<number>;

Defined in: stats/charts.ts:17


y ​

ts
y: ArrayLike<number>;

Defined in: stats/charts.ts:18


yAxis? ​

ts
optional yAxis?: string;

Defined in: stats/charts.ts:34

MIT licensed. WebGL2 required.