# PivotToSeriesOptions (@salmonui/pivot-table)

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

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

```ts
import type { PivotToSeriesOptions } 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 PivotToSeriesOptions {
    readonly measure?: string | undefined;
    readonly seriesBy?: 'columns' | 'rows' | undefined;
    readonly type?: PivotChartSeriesType | undefined;
    readonly includeTotals?: boolean | undefined;
    readonly labelSeparator?: string | undefined;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `measure` | `readonly measure?: string \| undefined;` | optional | Measure (value field name) to chart. Default: the first value field. |
| `seriesBy` | `readonly seriesBy?: 'columns' \| 'rows' \| undefined;` | optional | Members on the series: `'columns'` (default: one series per column member, categories are row members) or `'rows'`. |
| `type` | `readonly type?: PivotChartSeriesType \| undefined;` | optional | Series type. Default `'column'`. |
| `includeTotals` | `readonly includeTotals?: boolean \| undefined;` | optional | Include subtotal and grand total members. Default false. |
| `labelSeparator` | `readonly labelSeparator?: string \| undefined;` | optional | Category member labels joined with this text for nested members. Default `' / '`. |
