Fit
fitBlock elementGraph
A least-squares fit over the graph's scatter data — the model family and degree range are authored; the reader drives the degree with a native control in the pane footer.
Attributes
modelImplicit
fit-modelDefaultpolynomial
degree
numberDefault1
hidden
booleanDefaultfalse
lock
booleanDefaultfalse
Derived attributes
Computed while the element renders — read one with #id.name in attribute position or !value:#id.name() in prose, never set.
slopeDerived
interceptDerived
r2Derived
Allowed in
Examples
fit(model: polynomial; degree: d; colour: teal)