View as Markdown

API reference: @salmonui/pivot-table

PivotToSeriesOptionsinterface

import type { PivotToSeriesOptions } from '@salmonui/pivot-table';
interface PivotToSeriesOptions {
    readonly measure?: string | undefined;
    readonly seriesBy?: 'columns' | 'rows' | undefined;
    readonly type?: PivotChartSeriesType | undefined;
    readonly includeTotals?: boolean | undefined;
    readonly labelSeparator?: string | undefined;
}
PivotToSeriesOptions members (5)
NameSignatureDescription
measureoptionalreadonly measure?: string | undefined;

Measure (value field name) to chart. Default: the first value field.

seriesByoptionalreadonly seriesBy?: 'columns' | 'rows' | undefined;

Members on the series: 'columns' (default: one series per column member, categories are row members) or 'rows'.

typeoptionalreadonly type?: PivotChartSeriesType | undefined;

Series type. Default 'column'.

includeTotalsoptionalreadonly includeTotals?: boolean | undefined;

Include subtotal and grand total members. Default false.

labelSeparatoroptionalreadonly labelSeparator?: string | undefined;

Category member labels joined with this text for nested members. Default ' / '.