# FunnelChartProps (@salmonui/charts/pie-chart)

> The FunnelChartProps interface of @salmonui/charts/pie-chart.

Canonical: https://salmonui.dev/docs/reference/charts/pie-chart/FunnelChartProps

```ts
import type { FunnelChartProps } from '@salmonui/charts/pie-chart';
```

Entry index: https://salmonui.dev/docs/reference/charts/pie-chart (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/pie-chart.md).

## Reference

Kind: interface

```ts
interface FunnelChartProps extends AccumulationBaseProps {
    readonly text?: Partial<FunnelChartText> | undefined;
    readonly shape?: 'funnel' | 'pyramid' | undefined;
    readonly neckWidth?: number | string | undefined;
    readonly neckHeight?: number | string | undefined;
    readonly gap?: number | undefined;
    readonly variant?: 'standard' | 'trapezoidal' | undefined;
    readonly mode?: 'linear' | 'area' | undefined;
    readonly labels?: boolean | {
        readonly position?: 'inside' | 'outside' | undefined;
    } | undefined;
}
```

Members (46):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `text` | `readonly text?: Partial<FunnelChartText> \| undefined;` | optional | Built-in text (over the nearest `LocaleProvider`'s `funnelChart` entry). |
| `shape` | `readonly shape?: 'funnel' \| 'pyramid' \| undefined;` | optional |  |
| `neckWidth` | `readonly neckWidth?: number \| string \| undefined;` | optional | Funnel neck size, px or a percent of the width / height. Defaults `'20%'`. |
| `neckHeight` | `readonly neckHeight?: number \| string \| undefined;` | optional |  |
| `gap` | `readonly gap?: number \| undefined;` | optional | Gap between segments, px. Default 2 (10 with `variant="trapezoidal"`). |
| `variant` | `readonly variant?: 'standard' \| 'trapezoidal' \| undefined;` | optional | Funnel drawing: `standard` (default) is a cone with a neck; `trapezoidal` draws equal-height bars as wide as value / max, joined by translucent trapezoids, and ignores the neck. Funnel only. |
| `mode` | `readonly mode?: 'linear' \| 'area' \| undefined;` | optional | Pyramid `linear` (height by value) or `area` (area by value). |
| `labels` | `readonly labels?: boolean \| {     readonly position?: 'inside' \| 'outside' \| undefined; } \| undefined;` | optional | Segment labels: inside (default) or outside to the end side, or none. |
| `data` | `data?: readonly unknown[];` | optional, inherited | Records, or numbers (labels then default to "1", "2", ...). |
| `valueField` | `valueField?: string;` | optional, inherited |  |
| `labelField` | `labelField?: string;` | optional, inherited |  |
| `colorField` | `colorField?: string;` | optional, inherited | Record field holding a data color (`pointColorMapping`). |
| `palette` | `palette?: readonly string[];` | optional, inherited | Data colors by point index; default the derived `--salmon-chart-*` palette. |
| `patterns` | `patterns?: boolean;` | optional, inherited | Overlay one system fill pattern per palette slot (non-color encoding). |
| `emptyPoints` | `emptyPoints?: "average" \| "drop" \| "zero";` | optional, inherited |  |
| `width` | `width?: number;` | optional, inherited |  |
| `height` | `height?: number;` | optional, inherited |  |
| `title` | `title?: string;` | optional, inherited |  |
| `subtitle` | `subtitle?: string;` | optional, inherited |  |
| `description` | `description?: string;` | optional, inherited | Accessible description; default the automatic summary. |
| `locale` | `locale?: string;` | optional, inherited |  |
| `format` | `format?: NumberFormatOptions \| ((value: number) => string);` | optional, inherited |  |
| `legend` | `legend?: boolean \| AccumulationLegendOptions;` | optional, inherited |  |
| `tooltip` | `tooltip?: boolean \| AccumulationTooltipOptions;` | optional, inherited |  |
| `highlight` | `highlight?: boolean;` | optional, inherited | Dim the other points while one is hovered or focused. Default true. |
| `selection` | `selection?: boolean \| { readonly multiple?: boolean \| undefined; };` | optional, inherited | Click and Enter select points. |
| `hiddenPoints` | `hiddenPoints?: readonly number[];` | optional, inherited |  |
| `defaultHiddenPoints` | `defaultHiddenPoints?: readonly number[];` | optional, inherited |  |
| `onHiddenPointsChange` | `onHiddenPointsChange?: ((hidden: readonly number[], event: AccumulationChangeEvent) => void);` | optional, inherited |  |
| `selectedPoints` | `selectedPoints?: readonly AccumulationPointRef[];` | optional, inherited |  |
| `defaultSelectedPoints` | `defaultSelectedPoints?: readonly AccumulationPointRef[];` | optional, inherited |  |
| `onSelectedPointsChange` | `onSelectedPointsChange?: ((selected: readonly AccumulationPointRef[], event: AccumulationChangeEvent) => void);` | optional, inherited |  |
| `annotations` | `annotations?: readonly AccumulationAnnotation[];` | optional, inherited |  |
| `getPointStyle` | `getPointStyle?: ((point: AccumulationPoint) => AccumulationPointStyle \| undefined);` | optional, inherited |  |
| `formatLabel` | `formatLabel?: ((point: AccumulationPoint) => string);` | optional, inherited |  |
| `onPointClick` | `onPointClick?: ((point: AccumulationPoint, event: AccumulationChangeEvent) => void);` | optional, inherited |  |
| `onPointHover` | `onPointHover?: ((point: AccumulationPoint \| null) => void);` | optional, inherited |  |
| `showDataTable` | `showDataTable?: boolean;` | optional, inherited | Visible accessible data table (`showDataTable`). |
| `accessibleTable` | `accessibleTable?: boolean;` | optional, inherited | `false` leaves the visually hidden data table out. |
| `renderEmpty` | `renderEmpty?: (() => ReactNode);` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `id` | `id?: string;` | optional, inherited |  |
| `ref` | `ref?: Ref<VizInstance>;` | optional, inherited |  |
| `onResize` | `onResize?: ((size: { readonly width: number; readonly height: number; }) => void);` | optional, inherited |  |
| `animated` | `animated?: boolean;` | optional, inherited | Entrance and update transitions, default `true`: client only (never in server markup), off under `prefers-reduced-motion`. The CSS is the opt-in `@salmonui/charts/viz-animations.css`. |
