API reference: @salmonui/charts/pie-chart
FunnelChartcomponent
import { FunnelChart } from '@salmonui/charts/pie-chart';function FunnelChart(props: FunnelChartProps): ReactNode;
Props: FunnelChartProps
| Name | Signature | Description |
|---|---|---|
textoptional | readonly text?: Partial<FunnelChartText> | undefined; | Built-in text (over the nearest |
shapeoptional | readonly shape?: 'funnel' | 'pyramid' | undefined; | |
neckWidthoptional | readonly neckWidth?: number | string | undefined; | Funnel neck size, px or a percent of the width / height. Defaults |
neckHeightoptional | readonly neckHeight?: number | string | undefined; | |
gapoptional | readonly gap?: number | undefined; | Gap between segments, px. Default 2 (10 with |
variantoptional | readonly variant?: 'standard' | 'trapezoidal' | undefined; | Funnel drawing: |
modeoptional | readonly mode?: 'linear' | 'area' | undefined; | Pyramid |
labelsoptional | readonly labels?: boolean | {
readonly position?: 'inside' | 'outside' | undefined;
} | undefined; | Segment labels: inside (default) or outside to the end side, or none. |
dataoptionalinherited | data?: readonly unknown[]; | Records, or numbers (labels then default to "1", "2", ...). |
valueFieldoptionalinherited | valueField?: string; | |
labelFieldoptionalinherited | labelField?: string; | |
colorFieldoptionalinherited | colorField?: string; | Record field holding a data color ( |
paletteoptionalinherited | palette?: readonly string[]; | Data colors by point index; default the derived |
patternsoptionalinherited | patterns?: boolean; | Overlay one system fill pattern per palette slot (non-color encoding). |
emptyPointsoptionalinherited | emptyPoints?: "average" | "drop" | "zero"; | |
widthoptionalinherited | width?: number; | |
heightoptionalinherited | height?: number; | |
titleoptionalinherited | title?: string; | |
subtitleoptionalinherited | subtitle?: string; | |
descriptionoptionalinherited | description?: string; | Accessible description; default the automatic summary. |
localeoptionalinherited | locale?: string; | |
formatoptionalinherited | format?: NumberFormatOptions | ((value: number) => string); | |
legendoptionalinherited | legend?: boolean | AccumulationLegendOptions; | |
tooltipoptionalinherited | tooltip?: boolean | AccumulationTooltipOptions; | |
highlightoptionalinherited | highlight?: boolean; | Dim the other points while one is hovered or focused. Default true. |
selectionoptionalinherited | selection?: boolean | { readonly multiple?: boolean | undefined; }; | Click and Enter select points. |
hiddenPointsoptionalinherited | hiddenPoints?: readonly number[]; | |
defaultHiddenPointsoptionalinherited | defaultHiddenPoints?: readonly number[]; | |
onHiddenPointsChangeoptionalinherited | onHiddenPointsChange?: ((hidden: readonly number[], event: AccumulationChangeEvent) => void); | |
selectedPointsoptionalinherited | selectedPoints?: readonly AccumulationPointRef[]; | |
defaultSelectedPointsoptionalinherited | defaultSelectedPoints?: readonly AccumulationPointRef[]; | |
onSelectedPointsChangeoptionalinherited | onSelectedPointsChange?: ((selected: readonly AccumulationPointRef[], event: AccumulationChangeEvent) => void); | |
annotationsoptionalinherited | annotations?: readonly AccumulationAnnotation[]; | |
getPointStyleoptionalinherited | getPointStyle?: ((point: AccumulationPoint) => AccumulationPointStyle | undefined); | |
formatLabeloptionalinherited | formatLabel?: ((point: AccumulationPoint) => string); | |
onPointClickoptionalinherited | onPointClick?: ((point: AccumulationPoint, event: AccumulationChangeEvent) => void); | |
onPointHoveroptionalinherited | onPointHover?: ((point: AccumulationPoint | null) => void); | |
showDataTableoptionalinherited | showDataTable?: boolean; | Visible accessible data table ( |
accessibleTableoptionalinherited | accessibleTable?: boolean; |
|
renderEmptyoptionalinherited | renderEmpty?: (() => ReactNode); | |
classNameoptionalinherited | className?: string; | |
styleoptionalinherited | style?: CSSProperties; | |
idoptionalinherited | id?: string; | |
refoptionalinherited | ref?: Ref<VizInstance>; | |
onResizeoptionalinherited | onResize?: ((size: { readonly width: number; readonly height: number; }) => void); | |
animatedoptionalinherited | animated?: boolean; | Entrance and update transitions, default |