# PivotChartData (@salmonui/pivot-table)

> The PivotChartData interface of @salmonui/pivot-table.

Canonical: https://salmonui.dev/docs/reference/pivot-table/PivotChartData

```ts
import type { PivotChartData } from '@salmonui/pivot-table';
```

Entry index: https://salmonui.dev/docs/reference/pivot-table (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table.md).

## Reference

Kind: interface

```ts
interface PivotChartData {
    readonly data: readonly Readonly<Record<string, string | number | null>>[];
    readonly series: readonly PivotChartSeries[];
    readonly categories: readonly string[];
    readonly measure: string | null;
    pointAt(seriesId: string, index: number): PivotChartPoint | null;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: readonly Readonly<Record<string, string \| number \| null>>[];` |  | One record per category: `{ category, [seriesId]: value }`. |
| `series` | `readonly series: readonly PivotChartSeries[];` |  |  |
| `categories` | `readonly categories: readonly string[];` |  |  |
| `measure` | `readonly measure: string \| null;` |  |  |
| `pointAt` | `pointAt(seriesId: string, index: number): PivotChartPoint \| null;` |  | The pivot cell behind point `index` of `seriesId`, or null. |
