View as Markdown

API reference: @salmonui/pivot-table

PivotChartPropsOptionsinterface

import type { PivotChartPropsOptions } from '@salmonui/pivot-table';
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;
}
PivotChartPropsOptions members (9, 5 inherited)
NameSignatureDescription
drilloptionalreadonly drill?: PivotChartDrillMode | false | undefined;

Point click action (drillChartPoint mode). Default 'auto'; false leaves clicks to onPointClick.

onPointClickoptionalreadonly onPointClick?: ((ctx: ChartPointContext, point: PivotChartPoint | null, event: ChartClickEvent) => void) | undefined;

Called after the drill with the clicked point and its pivot cell (null when the point has none).

xAxisoptionalreadonly xAxis?: ChartAxisOptions | undefined;

Category axis options, merged over { scale: 'category' }.

yAxisoptionalreadonly yAxis?: ChartAxisOptions | undefined;

Value axis options; the default title is the measure caption.

measureoptionalinheritedmeasure?: string;

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

seriesByoptionalinheritedseriesBy?: "columns" | "rows";

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

typeoptionalinheritedtype?: PivotChartSeriesType;

Series type. Default 'column'.

includeTotalsoptionalinheritedincludeTotals?: boolean;

Include subtotal and grand total members. Default false.

labelSeparatoroptionalinheritedlabelSeparator?: string;

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