API reference: @salmonui/pivot-table/chart
PivotChartViewPropsinterface
import type { PivotChartViewProps } from '@salmonui/pivot-table/chart';interface PivotChartViewProps<Row> extends PivotChartPropsOptions {
readonly pivot: PivotController<Row>;
readonly seriesId?: string | undefined;
readonly title?: string | undefined;
readonly legend?: boolean | undefined;
readonly tooltip?: boolean | undefined;
readonly width?: number | undefined;
readonly height?: number | undefined;
readonly className?: string | undefined;
readonly style?: CSSProperties | undefined;
readonly fallback?: ReactNode;
readonly chartProps?: Partial<ChartProps> | undefined;
readonly accumulationProps?: Partial<PieChartProps & FunnelChartProps> | undefined;
readonly ref?: Ref<ChartApi | AccumulationApi> | undefined;
}
| Name | Signature | Description |
|---|---|---|
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 |
pivot | readonly pivot: PivotController<Row>; | |
seriesIdoptional | readonly seriesId?: string | undefined; | Pie, doughnut, funnel, pyramid: the series to draw ( |
titleoptional | readonly title?: string | undefined; | |
legendoptional | readonly legend?: boolean | undefined; | |
tooltipoptional | readonly tooltip?: boolean | undefined; | |
widthoptional | readonly width?: number | undefined; | |
heightoptional | readonly height?: number | undefined; | |
classNameoptional | readonly className?: string | undefined; | |
styleoptional | readonly style?: CSSProperties | undefined; | |
fallbackoptional | readonly fallback?: ReactNode; | Shown while the chart family loads. Default none. |
chartPropsoptional | readonly chartProps?: Partial<ChartProps> | undefined; | Extra |
accumulationPropsoptional | readonly accumulationProps?: Partial<PieChartProps & FunnelChartProps> | undefined; | Extra |
refoptional | readonly ref?: Ref<ChartApi | AccumulationApi> | undefined; | |
measureoptionalinherited | measure?: string; | Measure (value field name) to chart. Default: the first value field. |
seriesByoptionalinherited | seriesBy?: "columns" | "rows"; | Members on the series: |
drilloptionalinherited | drill?: false | PivotChartDrillMode; | Point click action ( |
onPointClickoptionalinherited | onPointClick?: ((ctx: ChartPointContext, point: PivotChartPoint | null, event: MouseEvent<Element, MouseEvent>) => void); | Called after the drill with the clicked point and its pivot cell (null when the point has none). |
xAxisoptionalinherited | xAxis?: ChartAxisOptions; | Category axis options, merged over |
yAxisoptionalinherited | yAxis?: ChartAxisOptions; | Value axis options; the default title is the measure caption. |