View as Markdown

API reference: @salmonui/pivot-table

PivotChartSeriesTypetype

import type { PivotChartSeriesType } from '@salmonui/pivot-table';
type PivotChartSeriesType = 'line' | 'column' | 'area' | 'bar' | 'spline' | 'stepLine' | 'stackingColumn' | 'stackingColumn100' | 'stackingBar' | 'stackingBar100' | 'stackingArea' | 'stackingArea100' | 'scatter' | 'bubble' | 'polar' | 'radar' | 'pareto' | 'pie' | 'doughnut' | 'funnel' | 'pyramid';

Pivot chart types. Each maps to Chart series options (pivotChartSeriesOptions()): spline is a line with curve: 'natural', stepLine a line with curve: 'step', the stacked kinds set stack ('percent' for 100 %). polar and radar are closed lines in coordinate="polar" / "radar" (pivotChartProps() sets it; Chart needs features={[polar]}). pie, doughnut, funnel and pyramid are not Chart series: PivotChart from @salmonui/pivot-table/chart draws them with PieChart and FunnelChart, and their shape here is only a column data fallback. pivotType keeps the requested type.