# XWUIChartResidualPlot

A residual plot: a fixed-type wrapper around `XWUIChart` that charts the differences
between observed and fitted values, the diagnostic view used to check whether a regression
leaves any structure behind. Pass your data as `series` of `{ x, y }` values plus an
optional `block` preset (1-4) and `size` (`sm` / `md` / `lg`); the shared block
config also forwards legend, grid, axis, data-label, and tooltip toggles. Use it to spot
patterns that a good model should have removed.

## Basic Usage

Two named series of monthly values rendered as a residual plot at the md size preset.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Two monthly series shown as residuals via the residualPlot chart type.
```

## House Price Regression Residuals

Residuals from a linear home-price model plotted against the fitted value, scattered around the zero baseline.

```example
file: examples/HousePriceRegression.ts
html: examples/HousePriceRegression.html
title: House Price Regression Residuals
description: Model residuals vs fitted home price ($K) form a shapeless cloud around zero.
```

## Sales Forecast Error Over Time

Forecast residuals ordered by sample index, where a visible wave exposes leftover autocorrelation.

```example
file: examples/SalesForecastError.ts
html: examples/SalesForecastError.html
title: Sales Forecast Error Over Time
description: Weekly sales forecast residuals by index reveal a systematic lag pattern.
```

```api
```
