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;
}
| Name | Signature | Description |
|---|---|---|
drilloptional | readonly drill?: PivotChartDrillMode | false | undefined; | Point click action ( |
onPointClickoptional | readonly 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). |
xAxisoptional | readonly xAxis?: ChartAxisOptions | undefined; | Category axis options, merged over |
yAxisoptional | readonly yAxis?: ChartAxisOptions | undefined; | Value axis options; the default title is the measure caption. |
measureoptionalinherited | measure?: string; | Measure (value field name) to chart. Default: the first value field. |
seriesByoptionalinherited | seriesBy?: "columns" | "rows"; | Members on the series: |
typeoptionalinherited | type?: PivotChartSeriesType; | Series type. Default |
includeTotalsoptionalinherited | includeTotals?: boolean; | Include subtotal and grand total members. Default false. |
labelSeparatoroptionalinherited | labelSeparator?: string; | Category member labels joined with this text for nested members. Default |