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

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

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

```ts
import type { AccumulationBaseProps } 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 AccumulationBaseProps {
    readonly data?: readonly unknown[] | undefined;
    readonly valueField?: string | undefined;
    readonly labelField?: string | undefined;
    readonly colorField?: string | undefined;
    readonly palette?: readonly string[] | undefined;
    readonly patterns?: boolean | undefined;
    readonly emptyPoints?: 'drop' | 'zero' | 'average' | undefined;
    readonly width?: number | undefined;
    readonly height?: number | undefined;
    readonly title?: string | undefined;
    readonly subtitle?: string | undefined;
    readonly description?: string | undefined;
    readonly locale?: string | undefined;
    readonly format?: Intl.NumberFormatOptions | ((value: number) => string) | undefined;
    readonly legend?: boolean | AccumulationLegendOptions | undefined;
    readonly tooltip?: boolean | AccumulationTooltipOptions | undefined;
    readonly highlight?: boolean | undefined;
    readonly selection?: boolean | {
        readonly multiple?: boolean | undefined;
    } | undefined;
    readonly hiddenPoints?: readonly number[] | undefined;
    readonly defaultHiddenPoints?: readonly number[] | undefined;
    readonly onHiddenPointsChange?: ((hidden: readonly number[], event: AccumulationChangeEvent) => void) | undefined;
    readonly selectedPoints?: readonly AccumulationPointRef[] | undefined;
    readonly defaultSelectedPoints?: readonly AccumulationPointRef[] | undefined;
    readonly onSelectedPointsChange?: ((selected: readonly AccumulationPointRef[], event: AccumulationChangeEvent) => void) | undefined;
    readonly annotations?: readonly AccumulationAnnotation[] | undefined;
    readonly getPointStyle?: ((point: AccumulationPoint) => AccumulationPointStyle | undefined) | undefined;
    readonly formatLabel?: ((point: AccumulationPoint) => string) | undefined;
    readonly onPointClick?: ((point: AccumulationPoint, event: AccumulationChangeEvent) => void) | undefined;
    readonly onPointHover?: ((point: AccumulationPoint | null) => void) | undefined;
    readonly showDataTable?: boolean | undefined;
    readonly accessibleTable?: boolean | undefined;
    readonly renderEmpty?: (() => ReactNode) | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly id?: string | undefined;
    readonly ref?: Ref<AccumulationApi> | undefined;
    readonly onResize?: ((size: {
        readonly width: number;
        readonly height: number;
    }) => void) | undefined;
    readonly animated?: boolean | undefined;
}
```

Members (38):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data?: readonly unknown[] \| undefined;` | optional | Records, or numbers (labels then default to "1", "2", ...). |
| `valueField` | `readonly valueField?: string \| undefined;` | optional |  |
| `labelField` | `readonly labelField?: string \| undefined;` | optional |  |
| `colorField` | `readonly colorField?: string \| undefined;` | optional | Record field holding a data color (`pointColorMapping`). |
| `palette` | `readonly palette?: readonly string[] \| undefined;` | optional | Data colors by point index; default the derived `--salmon-chart-*` palette. |
| `patterns` | `readonly patterns?: boolean \| undefined;` | optional | Overlay one system fill pattern per palette slot (non-color encoding). |
| `emptyPoints` | `readonly emptyPoints?: 'drop' \| 'zero' \| 'average' \| undefined;` | optional |  |
| `width` | `readonly width?: number \| undefined;` | optional |  |
| `height` | `readonly height?: number \| undefined;` | optional |  |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `subtitle` | `readonly subtitle?: string \| undefined;` | optional |  |
| `description` | `readonly description?: string \| undefined;` | optional | Accessible description; default the automatic summary. |
| `locale` | `readonly locale?: string \| undefined;` | optional |  |
| `format` | `readonly format?: Intl.NumberFormatOptions \| ((value: number) => string) \| undefined;` | optional |  |
| `legend` | `readonly legend?: boolean \| AccumulationLegendOptions \| undefined;` | optional |  |
| `tooltip` | `readonly tooltip?: boolean \| AccumulationTooltipOptions \| undefined;` | optional |  |
| `highlight` | `readonly highlight?: boolean \| undefined;` | optional | Dim the other points while one is hovered or focused. Default true. |
| `selection` | `readonly selection?: boolean \| {     readonly multiple?: boolean \| undefined; } \| undefined;` | optional | Click and Enter select points. |
| `hiddenPoints` | `readonly hiddenPoints?: readonly number[] \| undefined;` | optional |  |
| `defaultHiddenPoints` | `readonly defaultHiddenPoints?: readonly number[] \| undefined;` | optional |  |
| `onHiddenPointsChange` | `readonly onHiddenPointsChange?: ((hidden: readonly number[], event: AccumulationChangeEvent) => void) \| undefined;` | optional |  |
| `selectedPoints` | `readonly selectedPoints?: readonly AccumulationPointRef[] \| undefined;` | optional |  |
| `defaultSelectedPoints` | `readonly defaultSelectedPoints?: readonly AccumulationPointRef[] \| undefined;` | optional |  |
| `onSelectedPointsChange` | `readonly onSelectedPointsChange?: ((selected: readonly AccumulationPointRef[], event: AccumulationChangeEvent) => void) \| undefined;` | optional |  |
| `annotations` | `readonly annotations?: readonly AccumulationAnnotation[] \| undefined;` | optional |  |
| `getPointStyle` | `readonly getPointStyle?: ((point: AccumulationPoint) => AccumulationPointStyle \| undefined) \| undefined;` | optional |  |
| `formatLabel` | `readonly formatLabel?: ((point: AccumulationPoint) => string) \| undefined;` | optional |  |
| `onPointClick` | `readonly onPointClick?: ((point: AccumulationPoint, event: AccumulationChangeEvent) => void) \| undefined;` | optional |  |
| `onPointHover` | `readonly onPointHover?: ((point: AccumulationPoint \| null) => void) \| undefined;` | optional |  |
| `showDataTable` | `readonly showDataTable?: boolean \| undefined;` | optional | Visible accessible data table (`showDataTable`). |
| `accessibleTable` | `readonly accessibleTable?: boolean \| undefined;` | optional | `false` leaves the visually hidden data table out. |
| `renderEmpty` | `readonly renderEmpty?: (() => ReactNode) \| undefined;` | optional |  |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `id` | `readonly id?: string \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<AccumulationApi> \| undefined;` | optional |  |
| `onResize` | `readonly onResize?: ((size: {     readonly width: number;     readonly height: number; }) => void) \| undefined;` | optional |  |
| `animated` | `readonly animated?: boolean \| undefined;` | optional | 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`. |
