# XWUIChartConfusionMatrix

A confusion-matrix chart variant backed by `XWUIChart` that renders predicted-vs-actual class counts as a colored grid, the standard way to inspect classifier accuracy and spot where labels are confused. Supply one named `series` per matrix row, each carrying its cells as `{ x, y }` points (column label and count), then pick a `block` (1-4) and `size` preset.

## Basic Usage

Five named rows, each with seven randomized cell counts, laid out as a 5x7 matrix grid.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A 5x7 grid of randomized class counts rendered as a confusion matrix at the md preset.
```

## Handwritten Digit Classifier

An MNIST-style 5x5 confusion matrix for digits 0-4, with the bright diagonal marking correct predictions and off-diagonal cells exposing the most-confused pairs.

```example
file: examples/DigitClassifier.ts
html: examples/DigitClassifier.html
title: Handwritten Digit Classifier
description: MNIST-style confusion matrix for digits 0-4 with raw counts labelled on every cell.
```

## Sentiment Classifier

A three-class review-sentiment confusion matrix where the heavy diagonal confirms accuracy and the Neutral row shows where neutral reviews leak into Negative and Positive.

```example
file: examples/SentimentClassifier.ts
html: examples/SentimentClassifier.html
title: Sentiment Classifier
description: Negative/Neutral/Positive confusion matrix with per-cell grid values overlaid.
```

```api
```
