Regression line
ProA scatter plot with a least-squares linear trend line.
Illustration — rendered output uses live data.
Example
blade
<chart:scatter-regression
:series="[['name' => 'Obs', 'data' => [[1, 2], [2, 4], [3, 5], [4, 8], [5, 9]]]]"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| series | array | [] | A single series of [x, y] points. |
| legend | bool | true | Show the legend. |
Plus the common props (height, theme, model, class).
This is a Pro component
Unlock it and every other Pro chart with a one-time license.
Get WireCharts Pro