# XWUIChartCalibrationCurve

A calibration curve (plots predicted probability against observed frequency to check how well-calibrated a probabilistic model is; the closer the line tracks the diagonal, the better the calibration): a fixed-type wrapper around `XWUIChart` that draws one curve per series so you can read agreement at a glance. Pass each curve as a `series` of `{ x, y }` values plus a `block` preset (1-4) and `size` (`sm` / `md` / `lg`); the shared block config also exposes legend, grid, axis, data-label, and tooltip-formatter toggles. Use it to judge whether a model's confidence scores match reality.

## Basic Usage

Two monthly `{ x, y }` series, "Series A" and "Series B", drawn as illustrative calibration curves at the md size preset.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A calibration curve comparing two monthly series of predicted-versus-observed points.
```

## Classifier Reliability

A binary classifier's predicted-probability bins plotted against the observed positive fraction alongside a perfect-calibration diagonal.

```example
file: examples/ClassifierReliability.ts
html: examples/ClassifierReliability.html
title: Classifier Reliability
description: Predicted probability versus observed fraction with a perfect-calibration reference line.
```

## Rain Forecast Calibration

Forecast rain probability versus the fraction of days it actually rained, comparing two forecast years in block 2.

```example
file: examples/WeatherForecast.ts
html: examples/WeatherForecast.html
title: Rain Forecast Calibration
description: Predicted rain probability against observed rain frequency for two years in block 2.
```

```api
```
