# usePivotChartData (@salmonui/pivot-table)

> The usePivotChartData function of @salmonui/pivot-table: pivotToSeries() of the controller's current result, recomputed when the result changes.

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

```ts
import { usePivotChartData } 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: function

```ts
function usePivotChartData<Row>(pivot: PivotController<Row>, options?: PivotToSeriesOptions): PivotChartData;
```

`pivotToSeries()` of the controller's current result, recomputed when the result changes.
