# PivotChartPropsOptions (@salmonui/pivot-table)

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

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

```ts
import type { PivotChartPropsOptions } 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 PivotChartPropsOptions extends PivotToSeriesOptions {
    readonly drill?: PivotChartDrillMode | false | undefined;
    readonly onPointClick?: ((ctx: ChartPointContext, point: PivotChartPoint | null, event: ChartClickEvent) => void) | undefined;
    readonly xAxis?: ChartAxisOptions | undefined;
    readonly yAxis?: ChartAxisOptions | undefined;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `drill` | `readonly drill?: PivotChartDrillMode \| false \| undefined;` | optional | Point click action (`drillChartPoint` mode). Default `'auto'`; `false` leaves clicks to `onPointClick`. |
| `onPointClick` | `readonly onPointClick?: ((ctx: ChartPointContext, point: PivotChartPoint \| null, event: ChartClickEvent) => void) \| undefined;` | optional | Called after the drill with the clicked point and its pivot cell (null when the point has none). |
| `xAxis` | `readonly xAxis?: ChartAxisOptions \| undefined;` | optional | Category axis options, merged over `{ scale: 'category' }`. |
| `yAxis` | `readonly yAxis?: ChartAxisOptions \| undefined;` | optional | Value axis options; the default title is the measure caption. |
| `measure` | `measure?: string;` | optional, inherited | Measure (value field name) to chart. Default: the first value field. |
| `seriesBy` | `seriesBy?: "columns" \| "rows";` | optional, inherited | Members on the series: `'columns'` (default: one series per column member, categories are row members) or `'rows'`. |
| `type` | `type?: PivotChartSeriesType;` | optional, inherited | Series type. Default `'column'`. |
| `includeTotals` | `includeTotals?: boolean;` | optional, inherited | Include subtotal and grand total members. Default false. |
| `labelSeparator` | `labelSeparator?: string;` | optional, inherited | Category member labels joined with this text for nested members. Default `' / '`. |
