# PivotChartViewProps (@salmonui/pivot-table/chart)

> The PivotChartViewProps interface of @salmonui/pivot-table/chart.

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

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

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

## Reference

Kind: interface

```ts
interface PivotChartViewProps<Row> extends PivotChartPropsOptions {
    readonly pivot: PivotController<Row>;
    readonly seriesId?: string | undefined;
    readonly title?: string | undefined;
    readonly legend?: boolean | undefined;
    readonly tooltip?: boolean | undefined;
    readonly width?: number | undefined;
    readonly height?: number | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly fallback?: ReactNode;
    readonly chartProps?: Partial<ChartProps> | undefined;
    readonly accumulationProps?: Partial<PieChartProps & FunnelChartProps> | undefined;
    readonly ref?: Ref<ChartApi | AccumulationApi> | undefined;
}
```

Members (22):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `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 `' / '`. |
| `pivot` | `readonly pivot: PivotController<Row>;` |  |  |
| `seriesId` | `readonly seriesId?: string \| undefined;` | optional | Pie, doughnut, funnel, pyramid: the series to draw (`s0`, ...). |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `legend` | `readonly legend?: boolean \| undefined;` | optional |  |
| `tooltip` | `readonly tooltip?: boolean \| undefined;` | optional |  |
| `width` | `readonly width?: number \| undefined;` | optional |  |
| `height` | `readonly height?: number \| undefined;` | optional |  |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `fallback` | `readonly fallback?: ReactNode;` | optional | Shown while the chart family loads. Default none. |
| `chartProps` | `readonly chartProps?: Partial<ChartProps> \| undefined;` | optional | Extra `Chart` props (cartesian, polar and radar types). |
| `accumulationProps` | `readonly accumulationProps?: Partial<PieChartProps & FunnelChartProps> \| undefined;` | optional | Extra `PieChart` / `FunnelChart` props. |
| `ref` | `readonly ref?: Ref<ChartApi \| AccumulationApi> \| undefined;` | optional |  |
| `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'`. |
| `drill` | `drill?: false \| PivotChartDrillMode;` | optional, inherited | Point click action (`drillChartPoint` mode). Default `'auto'`; `false` leaves clicks to `onPointClick`. |
| `onPointClick` | `onPointClick?: ((ctx: ChartPointContext, point: PivotChartPoint \| null, event: MouseEvent<Element, MouseEvent>) => void);` | optional, inherited | Called after the drill with the clicked point and its pivot cell (null when the point has none). |
| `xAxis` | `xAxis?: ChartAxisOptions;` | optional, inherited | Category axis options, merged over `{ scale: 'category' }`. |
| `yAxis` | `yAxis?: ChartAxisOptions;` | optional, inherited | Value axis options; the default title is the measure caption. |
