# XWUIChartChiSquare

A chi-square chart (visualizes a chi-square test or distribution to compare observed against expected categorical frequencies and surface where they diverge): a fixed-type wrapper around `XWUIChart` that renders one series per category group. Pass each group 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 inspect how far observed counts depart from what was expected.

## Basic Usage

Two monthly `{ x, y }` series, "Series A" and "Series B", drawn as observed-versus-expected categories at the md size preset.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A chi-square chart comparing two monthly series of observed-versus-expected frequencies.
```

## Dice Fairness Test

Observed roll counts across the six faces of a die compared against a flat expected count, with legend and grid values to spot the loaded face.

```example
file: examples/DiceFairness.ts
html: examples/DiceFairness.html
title: Dice Fairness Test
description: A chi-square chart testing observed die-roll counts against an even expected distribution.
```

## Survey Independence

A five-point Likert survey weighing observed responses against the counts expected under independence on the block-2 preset.

```example
file: examples/SurveyIndependence.ts
html: examples/SurveyIndependence.html
title: Survey Independence
description: A chi-square chart comparing observed survey responses against expected counts.
```

```api
```
