# @salmonui/charts/chart API reference

> 49 exported symbols of @salmonui/charts/chart: 4 components, 31 interfaces and 14 types.

Canonical: https://salmonui.dev/docs/reference/charts/chart

```ts
import { … } from '@salmonui/charts/chart';
```

## Components

### Chart

Kind: component

Page: https://salmonui.dev/docs/reference/charts/chart/Chart

```ts
function Chart(props: ChartProps): ReactNode;
```

Props: [`ChartProps`](https://salmonui.dev/docs/reference/charts/chart/ChartProps) (its members are the props)

### ChartAxis

Kind: component

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAxis

```ts
function ChartAxis(_props: ChartAxisProps): ReactNode;
```

An axis as a child of `Chart`; `id="x"` / `id="y"` configure the primary axes.

Props: [`ChartAxisProps`](https://salmonui.dev/docs/reference/charts/chart/ChartAxisProps) (its members are the props)

### ChartSeries

Kind: component

Page: https://salmonui.dev/docs/reference/charts/chart/ChartSeries

```ts
function ChartSeries(_props: ChartSeriesProps): ReactNode;
```

One chart series as a child of `Chart` (same fields as a `series` entry).

Props: [`ChartSeriesProps`](https://salmonui.dev/docs/reference/charts/chart/ChartSeriesProps) (its members are the props)

### ChartSyncGroup

Kind: component

Page: https://salmonui.dev/docs/reference/charts/chart/ChartSyncGroup

```ts
function ChartSyncGroup(props: ChartSyncGroupProps): ReactNode;
```

Props: [`ChartSyncGroupProps`](https://salmonui.dev/docs/reference/charts/chart/ChartSyncGroupProps) (its members are the props)

## Interfaces

### ChartAnnotation

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAnnotation

```ts
interface ChartAnnotation {
    readonly x: number | string | Date;
    readonly y: number;
    readonly units?: 'data' | 'pixel' | undefined;
    readonly xAxis?: string | undefined;
    readonly yAxis?: string | undefined;
    readonly content: ReactNode;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `x` | `readonly x: number \| string \| Date;` |  |  |
| `y` | `readonly y: number;` |  |  |
| `units` | `readonly units?: 'data' \| 'pixel' \| undefined;` | optional |  |
| `xAxis` | `readonly xAxis?: string \| undefined;` | optional |  |
| `yAxis` | `readonly yAxis?: string \| undefined;` | optional |  |
| `content` | `readonly content: ReactNode;` |  |  |

### ChartApi

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartApi

```ts
interface ChartApi {
    readonly element: HTMLElement | null;
    export(options?: ChartExportOptions): Promise<void>;
    toBlob(format?: 'png' | 'jpeg' | 'svg'): Promise<Blob>;
    toDataURL(format?: 'png' | 'jpeg' | 'svg'): Promise<string>;
    toSVGString(): string;
    print(): Promise<void>;
    focus(): void;
    resetZoom(): void;
    showTooltip(point: ChartPointRef): void;
    hideTooltip(): void;
    showCrosshair(at: ChartPointRef | {
        readonly x: unknown;
        readonly y?: number | undefined;
    }): void;
    hideCrosshair(): void;
    appendPoints(seriesId: string, points: readonly ChartDatum[], options?: {
        readonly maxPoints?: number;
    }): void;
}
```

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `element` | `readonly element: HTMLElement \| null;` |  |  |
| `export` | `export(options?: ChartExportOptions): Promise<void>;` |  |  |
| `toBlob` | `toBlob(format?: 'png' \| 'jpeg' \| 'svg'): Promise<Blob>;` |  |  |
| `toDataURL` | `toDataURL(format?: 'png' \| 'jpeg' \| 'svg'): Promise<string>;` |  |  |
| `toSVGString` | `toSVGString(): string;` |  |  |
| `print` | `print(): Promise<void>;` |  |  |
| `focus` | `focus(): void;` |  |  |
| `resetZoom` | `resetZoom(): void;` |  |  |
| `showTooltip` | `showTooltip(point: ChartPointRef): void;` |  |  |
| `hideTooltip` | `hideTooltip(): void;` |  |  |
| `showCrosshair` | `showCrosshair(at: ChartPointRef \| {     readonly x: unknown;     readonly y?: number \| undefined; }): void;` |  | Shows the crosshair at a point, or at data values (`x` an axis value, `y` a y value). |
| `hideCrosshair` | `hideCrosshair(): void;` |  |  |
| `appendPoints` | `appendPoints(seriesId: string, points: readonly ChartDatum[], options?: {     readonly maxPoints?: number; }): void;` |  | Streams points into a series without a React render (`maxPoints` keeps a window). |

### ChartAxisBand

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAxisBand

```ts
interface ChartAxisBand {
    readonly from: number;
    readonly to: number;
    readonly every?: number | undefined;
    readonly until?: number | undefined;
    readonly layer?: 'behind' | 'over' | undefined;
    readonly label?: string | undefined;
    readonly color?: string | undefined;
    readonly crossFrom?: number | undefined;
    readonly crossTo?: number | undefined;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `from` | `readonly from: number;` |  |  |
| `to` | `readonly to: number;` |  |  |
| `every` | `readonly every?: number \| undefined;` | optional |  |
| `until` | `readonly until?: number \| undefined;` | optional |  |
| `layer` | `readonly layer?: 'behind' \| 'over' \| undefined;` | optional |  |
| `label` | `readonly label?: string \| undefined;` | optional |  |
| `color` | `readonly color?: string \| undefined;` | optional |  |
| `crossFrom` | `readonly crossFrom?: number \| undefined;` | optional | Limits the band to a segment of the crossing axis (values on it). |
| `crossTo` | `readonly crossTo?: number \| undefined;` | optional |  |

### ChartAxisLabelContext

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAxisLabelContext

```ts
interface ChartAxisLabelContext {
    readonly axisId: string;
    readonly value: unknown;
    readonly text: string;
    readonly index: number;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `axisId` | `readonly axisId: string;` |  |  |
| `value` | `readonly value: unknown;` |  |  |
| `text` | `readonly text: string;` |  |  |
| `index` | `readonly index: number;` |  |  |

### ChartAxisLabelGroup

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAxisLabelGroup

```ts
interface ChartAxisLabelGroup {
    readonly levels: readonly {
        readonly from: number | string;
        readonly to: number | string;
        readonly label: string;
    }[];
    readonly border?: 'rectangle' | 'brace' | 'curlyBrace' | 'none' | 'noTop' | 'noTopBottom' | undefined;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `levels` | `readonly levels: readonly {     readonly from: number \| string;     readonly to: number \| string;     readonly label: string; }[];` |  |  |
| `border` | `readonly border?: 'rectangle' \| 'brace' \| 'curlyBrace' \| 'none' \| 'noTop' \| 'noTopBottom' \| undefined;` | optional |  |

### ChartAxisLine

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAxisLine

```ts
interface ChartAxisLine {
    readonly value: number;
    readonly label?: string | undefined;
    readonly lineStyle?: ChartLineStyle | undefined;
    readonly color?: string | undefined;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value: number;` |  |  |
| `label` | `readonly label?: string \| undefined;` | optional |  |
| `lineStyle` | `readonly lineStyle?: ChartLineStyle \| undefined;` | optional |  |
| `color` | `readonly color?: string \| undefined;` | optional |  |

### ChartAxisOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAxisOptions

```ts
interface ChartAxisOptions {
    readonly id?: string | undefined;
    readonly scale?: ChartScale | undefined;
    readonly title?: string | undefined;
    readonly min?: number | Date | undefined;
    readonly max?: number | Date | undefined;
    readonly interval?: number | {
        readonly unit: 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
        readonly step: number;
    } | undefined;
    readonly tickCount?: number | undefined;
    readonly includeZero?: boolean | undefined;
    readonly padding?: 'auto' | 'none' | 'normal' | 'additional' | 'round' | undefined;
    readonly base?: number | undefined;
    readonly position?: 'start' | 'end' | undefined;
    readonly reversed?: boolean | undefined;
    readonly hidden?: boolean | undefined;
    readonly gridLines?: boolean | 'major' | 'both' | undefined;
    readonly minorTicks?: number | undefined;
    readonly labelOverlap?: ChartLabelOverlap | undefined;
    readonly labelAngle?: number | undefined;
    readonly maxLabelWidth?: number | undefined;
    readonly labelPlacement?: 'between' | 'on' | undefined;
    readonly edgeLabels?: 'none' | 'hide' | 'shift' | undefined;
    readonly labelPosition?: 'inside' | 'outside' | undefined;
    readonly tickPosition?: 'inside' | 'outside' | undefined;
    readonly plotOffset?: number | undefined;
    readonly indexed?: boolean | undefined;
    readonly ticks?: boolean | undefined;
    readonly line?: boolean | undefined;
    readonly titleAngle?: number | undefined;
    readonly format?: ChartFormat | undefined;
    readonly formatLabel?: ((value: unknown) => string) | undefined;
    readonly renderLabel?: ((ctx: ChartAxisLabelContext) => ReactNode) | undefined;
    readonly labelGroups?: readonly ChartAxisLabelGroup[] | undefined;
    readonly bands?: readonly ChartAxisBand[] | undefined;
    readonly lines?: readonly ChartAxisLine[] | undefined;
    readonly domain?: ((computed: readonly [
        number,
        number
    ]) => readonly [
        number,
        number
    ]) | undefined;
    readonly pane?: {
        readonly row?: number;
        readonly column?: number;
        readonly span?: number;
    } | undefined;
    readonly startAngle?: number | undefined;
    readonly crossAt?: {
        readonly value: number | Date;
        readonly axis?: string | undefined;
    } | undefined;
    readonly labelsAtCross?: boolean | undefined;
}
```

Members (38):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id?: string \| undefined;` | optional |  |
| `scale` | `readonly scale?: ChartScale \| undefined;` | optional |  |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `min` | `readonly min?: number \| Date \| undefined;` | optional |  |
| `max` | `readonly max?: number \| Date \| undefined;` | optional |  |
| `interval` | `readonly interval?: number \| {     readonly unit: 'millisecond' \| 'second' \| 'minute' \| 'hour' \| 'day' \| 'week' \| 'month' \| 'year';     readonly step: number; } \| undefined;` | optional | Numeric step, or a calendar interval on time axes. |
| `tickCount` | `readonly tickCount?: number \| undefined;` | optional |  |
| `includeZero` | `readonly includeZero?: boolean \| undefined;` | optional |  |
| `padding` | `readonly padding?: 'auto' \| 'none' \| 'normal' \| 'additional' \| 'round' \| undefined;` | optional |  |
| `base` | `readonly base?: number \| undefined;` | optional |  |
| `position` | `readonly position?: 'start' \| 'end' \| undefined;` | optional | `'start'` (left / bottom) or `'end'` (right / top). |
| `reversed` | `readonly reversed?: boolean \| undefined;` | optional |  |
| `hidden` | `readonly hidden?: boolean \| undefined;` | optional |  |
| `gridLines` | `readonly gridLines?: boolean \| 'major' \| 'both' \| undefined;` | optional |  |
| `minorTicks` | `readonly minorTicks?: number \| undefined;` | optional |  |
| `labelOverlap` | `readonly labelOverlap?: ChartLabelOverlap \| undefined;` | optional |  |
| `labelAngle` | `readonly labelAngle?: number \| undefined;` | optional |  |
| `maxLabelWidth` | `readonly maxLabelWidth?: number \| undefined;` | optional |  |
| `labelPlacement` | `readonly labelPlacement?: 'between' \| 'on' \| undefined;` | optional |  |
| `edgeLabels` | `readonly edgeLabels?: 'none' \| 'hide' \| 'shift' \| undefined;` | optional |  |
| `labelPosition` | `readonly labelPosition?: 'inside' \| 'outside' \| undefined;` | optional |  |
| `tickPosition` | `readonly tickPosition?: 'inside' \| 'outside' \| undefined;` | optional |  |
| `plotOffset` | `readonly plotOffset?: number \| undefined;` | optional | Padding in px between the axis ends and the first and last data positions. |
| `indexed` | `readonly indexed?: boolean \| undefined;` | optional | Category axis by point index: duplicate categories stay separate. |
| `ticks` | `readonly ticks?: boolean \| undefined;` | optional | `false` hides the tick marks. |
| `line` | `readonly line?: boolean \| undefined;` | optional | `false` hides the axis line. |
| `titleAngle` | `readonly titleAngle?: number \| undefined;` | optional | Title rotation in degrees (default 0 on horizontal axes, -90 / 90 on vertical ones). |
| `format` | `readonly format?: ChartFormat \| undefined;` | optional |  |
| `formatLabel` | `readonly formatLabel?: ((value: unknown) => string) \| undefined;` | optional |  |
| `renderLabel` | `readonly renderLabel?: ((ctx: ChartAxisLabelContext) => ReactNode) \| undefined;` | optional | SVG text content for a tick label (a string or `<tspan>`s). |
| `labelGroups` | `readonly labelGroups?: readonly ChartAxisLabelGroup[] \| undefined;` | optional | Grouped labels below the tick labels (multi-level labels). |
| `bands` | `readonly bands?: readonly ChartAxisBand[] \| undefined;` | optional |  |
| `lines` | `readonly lines?: readonly ChartAxisLine[] \| undefined;` | optional |  |
| `domain` | `readonly domain?: ((computed: readonly [     number,     number ]) => readonly [     number,     number ]) \| undefined;` | optional | Adjust the computed numeric domain (pure). |
| `pane` | `readonly pane?: {     readonly row?: number;     readonly column?: number;     readonly span?: number; } \| undefined;` | optional |  |
| `startAngle` | `readonly startAngle?: number \| undefined;` | optional | Polar and radar x axis: the angle of the first category or value, in degrees clockwise from 12 o'clock. |
| `crossAt` | `readonly crossAt?: {     readonly value: number \| Date;     readonly axis?: string \| undefined; } \| undefined;` | optional | Draws the axis line where the crossing axis (default: the primary one) has `value`. |
| `labelsAtCross` | `readonly labelsAtCross?: boolean \| undefined;` | optional | With `crossAt`, the labels move with the line (default: they stay at the plot edge). |

### ChartAxisProps

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartAxisProps

```ts
interface ChartAxisProps extends ChartAxisOptions {
    readonly direction: 'x' | 'y';
    readonly id?: string | undefined;
}
```

Members (39):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `direction` | `readonly direction: 'x' \| 'y';` |  | `'x'` (category / value axis along the data) or `'y'` (value axis). |
| `id` | `readonly id?: string \| undefined;` | optional | Required except for the primary axes (`'x'`, `'y'`). |
| `scale` | `scale?: ChartScale;` | optional, inherited |  |
| `title` | `title?: string;` | optional, inherited |  |
| `min` | `min?: number \| Date;` | optional, inherited |  |
| `max` | `max?: number \| Date;` | optional, inherited |  |
| `interval` | `interval?: number \| { readonly unit: "day" \| "hour" \| "millisecond" \| "minute" \| "month" \| "second" \| "week" \| "year"; readonly step: number; };` | optional, inherited | Numeric step, or a calendar interval on time axes. |
| `tickCount` | `tickCount?: number;` | optional, inherited |  |
| `includeZero` | `includeZero?: boolean;` | optional, inherited |  |
| `padding` | `padding?: "additional" \| "auto" \| "none" \| "normal" \| "round";` | optional, inherited |  |
| `base` | `base?: number;` | optional, inherited |  |
| `position` | `position?: "end" \| "start";` | optional, inherited | `'start'` (left / bottom) or `'end'` (right / top). |
| `reversed` | `reversed?: boolean;` | optional, inherited |  |
| `hidden` | `hidden?: boolean;` | optional, inherited |  |
| `gridLines` | `gridLines?: "both" \| "major" \| boolean;` | optional, inherited |  |
| `minorTicks` | `minorTicks?: number;` | optional, inherited |  |
| `labelOverlap` | `labelOverlap?: ChartLabelOverlap;` | optional, inherited |  |
| `labelAngle` | `labelAngle?: number;` | optional, inherited |  |
| `maxLabelWidth` | `maxLabelWidth?: number;` | optional, inherited |  |
| `labelPlacement` | `labelPlacement?: "between" \| "on";` | optional, inherited |  |
| `edgeLabels` | `edgeLabels?: "hide" \| "none" \| "shift";` | optional, inherited |  |
| `labelPosition` | `labelPosition?: "inside" \| "outside";` | optional, inherited |  |
| `tickPosition` | `tickPosition?: "inside" \| "outside";` | optional, inherited |  |
| `plotOffset` | `plotOffset?: number;` | optional, inherited | Padding in px between the axis ends and the first and last data positions. |
| `indexed` | `indexed?: boolean;` | optional, inherited | Category axis by point index: duplicate categories stay separate. |
| `ticks` | `ticks?: boolean;` | optional, inherited | `false` hides the tick marks. |
| `line` | `line?: boolean;` | optional, inherited | `false` hides the axis line. |
| `titleAngle` | `titleAngle?: number;` | optional, inherited | Title rotation in degrees (default 0 on horizontal axes, -90 / 90 on vertical ones). |
| `format` | `format?: ChartFormat;` | optional, inherited |  |
| `formatLabel` | `formatLabel?: ((value: unknown) => string);` | optional, inherited |  |
| `renderLabel` | `renderLabel?: ((ctx: ChartAxisLabelContext) => ReactNode);` | optional, inherited | SVG text content for a tick label (a string or `<tspan>`s). |
| `labelGroups` | `labelGroups?: readonly ChartAxisLabelGroup[];` | optional, inherited | Grouped labels below the tick labels (multi-level labels). |
| `bands` | `bands?: readonly ChartAxisBand[];` | optional, inherited |  |
| `lines` | `lines?: readonly ChartAxisLine[];` | optional, inherited |  |
| `domain` | `domain?: ((computed: readonly [number, number]) => readonly [number, number]);` | optional, inherited | Adjust the computed numeric domain (pure). |
| `pane` | `pane?: { readonly row?: number; readonly column?: number; readonly span?: number; };` | optional, inherited |  |
| `startAngle` | `startAngle?: number;` | optional, inherited | Polar and radar x axis: the angle of the first category or value, in degrees clockwise from 12 o'clock. |
| `crossAt` | `crossAt?: { readonly value: number \| Date; readonly axis?: string \| undefined; };` | optional, inherited | Draws the axis line where the crossing axis (default: the primary one) has `value`. |
| `labelsAtCross` | `labelsAtCross?: boolean;` | optional, inherited | With `crossAt`, the labels move with the line (default: they stay at the plot edge). |

### ChartChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartChangeEvent

```ts
interface ChartChangeEvent<R extends string = string> {
    readonly source: 'pointer' | 'keyboard' | 'touch' | 'api';
    readonly reason: R;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: 'pointer' \| 'keyboard' \| 'touch' \| 'api';` |  |  |
| `reason` | `readonly reason: R;` |  |  |

### ChartColorRange

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartColorRange

```ts
interface ChartColorRange {
    readonly from: number;
    readonly to: number;
    readonly colors: readonly string[];
    readonly label?: string | undefined;
}
```

A y value range with its data colors: one color, or several spread across the range.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `from` | `readonly from: number;` |  |  |
| `to` | `readonly to: number;` |  |  |
| `colors` | `readonly colors: readonly string[];` |  |  |
| `label` | `readonly label?: string \| undefined;` | optional |  |

### ChartCrosshairOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartCrosshairOptions

```ts
interface ChartCrosshairOptions {
    readonly lines?: 'both' | 'x' | 'y' | undefined;
    readonly snap?: boolean | undefined;
    readonly highlightCategory?: boolean | undefined;
    readonly axisLabels?: boolean | undefined;
    readonly formatLabel?: ((value: unknown, axisId: string) => string) | undefined;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `lines` | `readonly lines?: 'both' \| 'x' \| 'y' \| undefined;` | optional |  |
| `snap` | `readonly snap?: boolean \| undefined;` | optional |  |
| `highlightCategory` | `readonly highlightCategory?: boolean \| undefined;` | optional | Shades the hovered category band of a category x axis. |
| `axisLabels` | `readonly axisLabels?: boolean \| undefined;` | optional | Value labels on the axes at the crosshair lines. |
| `formatLabel` | `readonly formatLabel?: ((value: unknown, axisId: string) => string) \| undefined;` | optional | Axis label text; the axis format otherwise. |

### ChartDataLabels

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartDataLabels

```ts
interface ChartDataLabels {
    readonly position?: 'outside' | 'top' | 'bottom' | 'middle' | 'auto' | undefined;
    readonly format?: ChartFormat | ((ctx: ChartPointContext) => string) | undefined;
    readonly angle?: number | undefined;
    readonly showZero?: boolean | undefined;
    readonly overlap?: 'none' | 'hide' | 'rotate90' | 'shiftY' | 'shiftX' | undefined;
    readonly dedupe?: boolean | undefined;
    readonly render?: ((ctx: ChartPointContext) => ReactNode) | undefined;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `position` | `readonly position?: 'outside' \| 'top' \| 'bottom' \| 'middle' \| 'auto' \| undefined;` | optional |  |
| `format` | `readonly format?: ChartFormat \| ((ctx: ChartPointContext) => string) \| undefined;` | optional |  |
| `angle` | `readonly angle?: number \| undefined;` | optional |  |
| `showZero` | `readonly showZero?: boolean \| undefined;` | optional |  |
| `overlap` | `readonly overlap?: 'none' \| 'hide' \| 'rotate90' \| 'shiftY' \| 'shiftX' \| undefined;` | optional | Smart labels: what a label that collides with an earlier one does (series order is priority). |
| `dedupe` | `readonly dedupe?: boolean \| undefined;` | optional | Drops a label whose text repeats the previous label of the series. |
| `render` | `readonly render?: ((ctx: ChartPointContext) => ReactNode) \| undefined;` | optional | SVG content in place of the label text, placed at the label anchor. |

### ChartErrorBars

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartErrorBars

```ts
interface ChartErrorBars {
    readonly kind: 'fixed' | 'percent' | 'standardDeviation' | 'standardError' | 'custom';
    readonly amount?: number | undefined;
    readonly plusField?: string | undefined;
    readonly minusField?: string | undefined;
    readonly direction?: 'both' | 'plus' | 'minus' | undefined;
    readonly caps?: boolean | undefined;
    readonly axis?: 'y' | 'x' | 'both' | undefined;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'fixed' \| 'percent' \| 'standardDeviation' \| 'standardError' \| 'custom';` |  |  |
| `amount` | `readonly amount?: number \| undefined;` | optional |  |
| `plusField` | `readonly plusField?: string \| undefined;` | optional |  |
| `minusField` | `readonly minusField?: string \| undefined;` | optional |  |
| `direction` | `readonly direction?: 'both' \| 'plus' \| 'minus' \| undefined;` | optional |  |
| `caps` | `readonly caps?: boolean \| undefined;` | optional |  |
| `axis` | `readonly axis?: 'y' \| 'x' \| 'both' \| undefined;` | optional | Error along y (default), x (continuous x axes) or both, with the same kind and amount. |

### ChartExportOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartExportOptions

```ts
interface ChartExportOptions {
    readonly format?: 'png' | 'jpeg' | 'svg' | 'csv' | 'xlsx' | 'pdf' | undefined;
    readonly fileName?: string | undefined;
    readonly scale?: number | undefined;
    readonly orientation?: 'portrait' | 'landscape' | undefined;
    readonly pageSize?: string | undefined;
    readonly escapeFormulas?: boolean | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `format` | `readonly format?: 'png' \| 'jpeg' \| 'svg' \| 'csv' \| 'xlsx' \| 'pdf' \| undefined;` | optional | Image, table (`csv`; `xlsx` through `exportWriters.xlsx`) or vector PDF (through `exportWriters.pdf`). |
| `fileName` | `readonly fileName?: string \| undefined;` | optional |  |
| `scale` | `readonly scale?: number \| undefined;` | optional |  |
| `orientation` | `readonly orientation?: 'portrait' \| 'landscape' \| undefined;` | optional | PDF page orientation; default landscape when the drawing is wider than tall. |
| `pageSize` | `readonly pageSize?: string \| undefined;` | optional | PDF page size (`a4`, `letter`, ...). Default `a4`. |
| `escapeFormulas` | `readonly escapeFormulas?: boolean \| undefined;` | optional | CSV: neutralize spreadsheet formulas in text cells. Default true; `false` writes raw text. |

### ChartFeature

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartFeature

```ts
interface ChartFeature {
    readonly name: string;
}
```

A feature value from `@salmonui/charts/chart/features`.

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name: string;` |  |  |

### ChartIndicator

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartIndicator

```ts
interface ChartIndicator {
    readonly id?: string | undefined;
    readonly kind: 'sma' | 'ema' | 'tma' | 'momentum' | 'rsi' | 'atr' | 'accumulationDistribution' | 'bollinger' | 'macd' | 'stochastic';
    readonly seriesId: string;
    readonly period?: number | undefined;
    readonly field?: 'close' | 'open' | 'high' | 'low' | undefined;
    readonly deviations?: number | undefined;
    readonly fastPeriod?: number | undefined;
    readonly slowPeriod?: number | undefined;
    readonly signalPeriod?: number | undefined;
    readonly kPeriod?: number | undefined;
    readonly dPeriod?: number | undefined;
    readonly display?: 'line' | 'histogram' | 'both' | undefined;
    readonly zones?: boolean | {
        readonly upper?: number | undefined;
        readonly lower?: number | undefined;
    } | undefined;
    readonly yAxis?: string | undefined;
    readonly name?: string | undefined;
    readonly color?: string | undefined;
}
```

A technical indicator over a series, drawn by the analysis layer.

Members (16):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id?: string \| undefined;` | optional |  |
| `kind` | `readonly kind: 'sma' \| 'ema' \| 'tma' \| 'momentum' \| 'rsi' \| 'atr' \| 'accumulationDistribution' \| 'bollinger' \| 'macd' \| 'stochastic';` |  |  |
| `seriesId` | `readonly seriesId: string;` |  | The source series (its id, name or yField). |
| `period` | `readonly period?: number \| undefined;` | optional | Default 14 (Bollinger 20). |
| `field` | `readonly field?: 'close' \| 'open' \| 'high' \| 'low' \| undefined;` | optional | Value column of an OHLC series; default `'close'` (the y values of other series). |
| `deviations` | `readonly deviations?: number \| undefined;` | optional | Bollinger band width in standard deviations (default 2). |
| `fastPeriod` | `readonly fastPeriod?: number \| undefined;` | optional |  |
| `slowPeriod` | `readonly slowPeriod?: number \| undefined;` | optional |  |
| `signalPeriod` | `readonly signalPeriod?: number \| undefined;` | optional |  |
| `kPeriod` | `readonly kPeriod?: number \| undefined;` | optional |  |
| `dPeriod` | `readonly dPeriod?: number \| undefined;` | optional |  |
| `display` | `readonly display?: 'line' \| 'histogram' \| 'both' \| undefined;` | optional | MACD parts (default `'both'`). |
| `zones` | `readonly zones?: boolean \| {     readonly upper?: number \| undefined;     readonly lower?: number \| undefined; } \| undefined;` | optional | RSI and Stochastic overbought / oversold lines and band (default 70 / 30 and 80 / 20). |
| `yAxis` | `readonly yAxis?: string \| undefined;` | optional | Axis for the values: an `axes` entry, usually in its own pane. Oscillators get a secondary axis otherwise. |
| `name` | `readonly name?: string \| undefined;` | optional |  |
| `color` | `readonly color?: string \| undefined;` | optional | Data color, not a theme token. |

### ChartLegendItem

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartLegendItem

```ts
interface ChartLegendItem {
    readonly id: string;
    readonly label: string;
    readonly color: string;
    readonly hidden: boolean;
    readonly seriesId?: string | undefined;
    readonly index?: number | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `color` | `readonly color: string;` |  |  |
| `hidden` | `readonly hidden: boolean;` |  |  |
| `seriesId` | `readonly seriesId?: string \| undefined;` | optional | The series of a series or point item. |
| `index` | `readonly index?: number \| undefined;` | optional |  |

### ChartLegendOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartLegendOptions

```ts
interface ChartLegendOptions {
    readonly position?: 'auto' | 'top' | 'bottom' | 'start' | 'end' | undefined;
    readonly title?: string | undefined;
    readonly toggle?: boolean | undefined;
    readonly highlight?: boolean | undefined;
    readonly maxLabelWidth?: number | undefined;
    readonly overflow?: 'wrap' | 'page' | undefined;
    readonly columns?: number | undefined;
    readonly reverse?: boolean | undefined;
    readonly align?: 'start' | 'center' | 'end' | undefined;
    readonly orientation?: 'horizontal' | 'vertical' | undefined;
    readonly mode?: 'series' | 'point' | 'range' | 'gradient' | undefined;
    readonly renderItem?: ((item: ChartLegendItem) => ReactNode) | undefined;
}
```

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `position` | `readonly position?: 'auto' \| 'top' \| 'bottom' \| 'start' \| 'end' \| undefined;` | optional |  |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `toggle` | `readonly toggle?: boolean \| undefined;` | optional |  |
| `highlight` | `readonly highlight?: boolean \| undefined;` | optional |  |
| `maxLabelWidth` | `readonly maxLabelWidth?: number \| undefined;` | optional |  |
| `overflow` | `readonly overflow?: 'wrap' \| 'page' \| undefined;` | optional |  |
| `columns` | `readonly columns?: number \| undefined;` | optional |  |
| `reverse` | `readonly reverse?: boolean \| undefined;` | optional |  |
| `align` | `readonly align?: 'start' \| 'center' \| 'end' \| undefined;` | optional | Placement along the legend's edge (default `'center'`). |
| `orientation` | `readonly orientation?: 'horizontal' \| 'vertical' \| undefined;` | optional | `'vertical'` lays a top or bottom legend out in one column; side legends are always one column. |
| `mode` | `readonly mode?: 'series' \| 'point' \| 'range' \| 'gradient' \| undefined;` | optional | `'series'` (default, toggles series), `'point'` (the points of the first series, named by its `tooltipField`, else its x value), `'range'` / `'gradient'` (`colorRanges`); the last three are keys, not toggles. |
| `renderItem` | `readonly renderItem?: ((item: ChartLegendItem) => ReactNode) \| undefined;` | optional | Custom item content (HTML over the drawing; not part of the exported SVG). |

### ChartMarkers

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartMarkers

```ts
interface ChartMarkers {
    readonly shape?: ChartMarkerShape | undefined;
    readonly size?: number | undefined;
    readonly filled?: boolean | undefined;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `shape` | `readonly shape?: ChartMarkerShape \| undefined;` | optional |  |
| `size` | `readonly size?: number \| undefined;` | optional |  |
| `filled` | `readonly filled?: boolean \| undefined;` | optional |  |

### ChartPlotPoint

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartPlotPoint

```ts
interface ChartPlotPoint {
    readonly x: number;
    readonly y: number;
    readonly xValue: unknown;
    readonly yValue: unknown;
}
```

A plot position in drawing px with its data values on the x axis and the first y axis.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `x` | `readonly x: number;` |  |  |
| `y` | `readonly y: number;` |  |  |
| `xValue` | `readonly xValue: unknown;` |  | A category, a `Date` (time axes) or a number; undefined before the chart is interactive. |
| `yValue` | `readonly yValue: unknown;` |  |  |

### ChartPointContext

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartPointContext

```ts
interface ChartPointContext {
    readonly seriesId: string;
    readonly seriesName: string;
    readonly index: number;
    readonly datum: ChartDatum;
    readonly x: unknown;
    readonly y: number;
    readonly xText: string;
    readonly yText: string;
    readonly color: string;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `seriesId` | `readonly seriesId: string;` |  |  |
| `seriesName` | `readonly seriesName: string;` |  |  |
| `index` | `readonly index: number;` |  |  |
| `datum` | `readonly datum: ChartDatum;` |  |  |
| `x` | `readonly x: unknown;` |  |  |
| `y` | `readonly y: number;` |  |  |
| `xText` | `readonly xText: string;` |  | Formatted x and y as shown in tooltips and the table. |
| `yText` | `readonly yText: string;` |  |  |
| `color` | `readonly color: string;` |  |  |

### ChartPointRef

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartPointRef

```ts
interface ChartPointRef {
    readonly seriesId: string;
    readonly index: number;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `seriesId` | `readonly seriesId: string;` |  |  |
| `index` | `readonly index: number;` |  |  |

### ChartProps

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartProps

```ts
interface ChartProps extends ChartRootHandlers {
    readonly 'aria-label'?: string | undefined;
    readonly 'aria-labelledby'?: string | undefined;
    readonly data?: readonly ChartDatum[] | undefined;
    readonly series?: readonly ChartSeriesOptions[] | undefined;
    readonly xAxis?: ChartAxisOptions | undefined;
    readonly yAxis?: ChartAxisOptions | undefined;
    readonly axes?: readonly (ChartAxisOptions & {
        readonly id: string;
        readonly direction: 'x' | 'y';
    })[] | undefined;
    readonly panes?: {
        readonly rows?: readonly ChartPaneSize[];
        readonly columns?: readonly ChartPaneSize[];
    } | undefined;
    readonly orientation?: 'vertical' | 'horizontal' | undefined;
    readonly coordinate?: 'cartesian' | 'polar' | 'radar' | undefined;
    readonly radius?: number | undefined;
    readonly features?: readonly ChartFeature[] | undefined;
    readonly grouping?: 'sideBySide' | 'overlap' | undefined;
    readonly title?: string | undefined;
    readonly subtitle?: string | undefined;
    readonly description?: string | undefined;
    readonly legend?: boolean | ChartLegendOptions | undefined;
    readonly tooltip?: boolean | ChartTooltipOptions | undefined;
    readonly crosshair?: boolean | ChartCrosshairOptions | undefined;
    readonly zoom?: boolean | ChartZoomOptions | undefined;
    readonly zoomRange?: ChartZoomRange | undefined;
    readonly defaultZoomRange?: ChartZoomRange | undefined;
    readonly onZoomRangeChange?: ((range: ChartZoomRange, event: ChartChangeEvent<'wheel' | 'selection' | 'pan' | 'pinch' | 'keyboard' | 'toolbar' | 'scrollbar' | 'reset'>) => void) | undefined;
    readonly onVisibleRangeChange?: ((change: {
        readonly axisId: string;
        readonly range: readonly [
            number,
            number
        ];
    }) => void) | undefined;
    readonly hiddenSeries?: readonly string[] | undefined;
    readonly defaultHiddenSeries?: readonly string[] | undefined;
    readonly onHiddenSeriesChange?: ((ids: readonly string[], event: ChartChangeEvent<'legend'>) => void) | undefined;
    readonly selection?: boolean | {
        readonly mode?: 'point' | 'series' | 'cluster' | 'range' | 'lasso';
        readonly multiple?: boolean;
        readonly axis?: 'x' | 'y' | 'xy';
    } | undefined;
    readonly onRangeSelect?: ((selection: {
        readonly ranges: ChartZoomRange;
        readonly points: readonly ChartPointRef[];
    }, event: ChartChangeEvent<'range' | 'lasso'>) => void) | undefined;
    readonly selectedPoints?: readonly ChartPointRef[] | undefined;
    readonly defaultSelectedPoints?: readonly ChartPointRef[] | undefined;
    readonly onSelectedPointsChange?: ((points: readonly ChartPointRef[], event: ChartChangeEvent<'click' | 'keyboard' | 'range' | 'lasso' | 'sync'>) => void) | undefined;
    readonly highlight?: 'series' | 'point' | 'cluster' | false | undefined;
    readonly onPointClick?: ((ctx: ChartPointContext, event: MouseEvent) => void) | undefined;
    readonly onPlotClick?: ((point: ChartPlotPoint, event: MouseEvent) => void) | undefined;
    readonly onPlotPointerMove?: ((point: ChartPlotPoint, event: PointerEvent) => void) | undefined;
    readonly onPointHover?: ((ctx: ChartPointContext | null) => void) | undefined;
    readonly onPointChange?: ((change: {
        readonly seriesId: string;
        readonly index: number;
        readonly value: number;
    }, event: ChartChangeEvent<'drag' | 'keyboard'>) => void) | undefined;
    readonly onPointDoubleClick?: ((ctx: ChartPointContext, event: MouseEvent) => void) | undefined;
    readonly onAxisLabelClick?: ((ctx: ChartAxisLabelContext, event: MouseEvent) => void) | undefined;
    readonly onAxisLabelGroupClick?: ((ctx: {
        readonly axisId: string;
        readonly group: number;
        readonly level: number;
        readonly label: string;
    }, event: MouseEvent) => void) | undefined;
    readonly onResize?: ((size: {
        readonly width: number;
        readonly height: number;
    }) => void) | undefined;
    readonly annotations?: readonly ChartAnnotation[] | undefined;
    readonly indicators?: readonly ChartIndicator[] | undefined;
    readonly stackLabels?: boolean | {
        readonly format?: ChartFormat | undefined;
    } | undefined;
    readonly palette?: readonly string[] | undefined;
    readonly colorRanges?: readonly ChartColorRange[] | undefined;
    readonly renderer?: 'svg' | 'canvas' | 'auto' | undefined;
    readonly decimation?: 'auto' | 'lttb' | 'minMax' | false | undefined;
    readonly accessibleTable?: boolean | undefined;
    readonly showDataTable?: boolean | undefined;
    readonly renderEmpty?: (() => ReactNode) | undefined;
    readonly animated?: boolean | undefined;
    readonly locale?: string | undefined;
    readonly timeZone?: string | undefined;
    readonly text?: Partial<ChartText> | undefined;
    readonly width?: number | undefined;
    readonly height?: number | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly exportWriters?: ChartExportWriters | undefined;
    readonly ref?: Ref<ChartApi> | undefined;
    readonly children?: ReactNode;
}
```

Members (63):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `aria-label` | `readonly 'aria-label'?: string \| undefined;` | optional | Accessible name of the chart; wins over `title` and the generated summary. |
| `aria-labelledby` | `readonly 'aria-labelledby'?: string \| undefined;` | optional | Id of the element naming the chart; wins over `aria-label`. |
| `data` | `readonly data?: readonly ChartDatum[] \| undefined;` | optional |  |
| `series` | `readonly series?: readonly ChartSeriesOptions[] \| undefined;` | optional |  |
| `xAxis` | `readonly xAxis?: ChartAxisOptions \| undefined;` | optional |  |
| `yAxis` | `readonly yAxis?: ChartAxisOptions \| undefined;` | optional |  |
| `axes` | `readonly axes?: readonly (ChartAxisOptions & {     readonly id: string;     readonly direction: 'x' \| 'y'; })[] \| undefined;` | optional | Additional axes referenced by `series.xAxis` / `series.yAxis` (id required). |
| `panes` | `readonly panes?: {     readonly rows?: readonly ChartPaneSize[];     readonly columns?: readonly ChartPaneSize[]; } \| undefined;` | optional |  |
| `orientation` | `readonly orientation?: 'vertical' \| 'horizontal' \| undefined;` | optional |  |
| `coordinate` | `readonly coordinate?: 'cartesian' \| 'polar' \| 'radar' \| undefined;` | optional | Polar (circles) or radar (polygons) coordinates; x is the angle, y the radius. |
| `radius` | `readonly radius?: number \| undefined;` | optional | Polar radius as a fraction (0..1) of the largest circle that fits. |
| `features` | `readonly features?: readonly ChartFeature[] \| undefined;` | optional | Preloaded features from `@salmonui/charts/chart/features`: `polar` renders polar charts on the server. |
| `grouping` | `readonly grouping?: 'sideBySide' \| 'overlap' \| undefined;` | optional |  |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `subtitle` | `readonly subtitle?: string \| undefined;` | optional |  |
| `description` | `readonly description?: string \| undefined;` | optional |  |
| `legend` | `readonly legend?: boolean \| ChartLegendOptions \| undefined;` | optional |  |
| `tooltip` | `readonly tooltip?: boolean \| ChartTooltipOptions \| undefined;` | optional |  |
| `crosshair` | `readonly crosshair?: boolean \| ChartCrosshairOptions \| undefined;` | optional |  |
| `zoom` | `readonly zoom?: boolean \| ChartZoomOptions \| undefined;` | optional |  |
| `zoomRange` | `readonly zoomRange?: ChartZoomRange \| undefined;` | optional |  |
| `defaultZoomRange` | `readonly defaultZoomRange?: ChartZoomRange \| undefined;` | optional |  |
| `onZoomRangeChange` | `readonly onZoomRangeChange?: ((range: ChartZoomRange, event: ChartChangeEvent<'wheel' \| 'selection' \| 'pan' \| 'pinch' \| 'keyboard' \| 'toolbar' \| 'scrollbar' \| 'reset'>) => void) \| undefined;` | optional |  |
| `onVisibleRangeChange` | `readonly onVisibleRangeChange?: ((change: {     readonly axisId: string;     readonly range: readonly [         number,         number     ]; }) => void) \| undefined;` | optional | The committed visible range of a continuous axis changed: fetch data for it. Fires on commit, never per frame. |
| `hiddenSeries` | `readonly hiddenSeries?: readonly string[] \| undefined;` | optional |  |
| `defaultHiddenSeries` | `readonly defaultHiddenSeries?: readonly string[] \| undefined;` | optional |  |
| `onHiddenSeriesChange` | `readonly onHiddenSeriesChange?: ((ids: readonly string[], event: ChartChangeEvent<'legend'>) => void) \| undefined;` | optional |  |
| `selection` | `readonly selection?: boolean \| {     readonly mode?: 'point' \| 'series' \| 'cluster' \| 'range' \| 'lasso';     readonly multiple?: boolean;     readonly axis?: 'x' \| 'y' \| 'xy'; } \| undefined;` | optional |  |
| `onRangeSelect` | `readonly onRangeSelect?: ((selection: {     readonly ranges: ChartZoomRange;     readonly points: readonly ChartPointRef[]; }, event: ChartChangeEvent<'range' \| 'lasso'>) => void) \| undefined;` | optional | Range and lasso selection finished: `ranges` per axis id (range mode) and the enclosed points. |
| `selectedPoints` | `readonly selectedPoints?: readonly ChartPointRef[] \| undefined;` | optional |  |
| `defaultSelectedPoints` | `readonly defaultSelectedPoints?: readonly ChartPointRef[] \| undefined;` | optional |  |
| `onSelectedPointsChange` | `readonly onSelectedPointsChange?: ((points: readonly ChartPointRef[], event: ChartChangeEvent<'click' \| 'keyboard' \| 'range' \| 'lasso' \| 'sync'>) => void) \| undefined;` | optional |  |
| `highlight` | `readonly highlight?: 'series' \| 'point' \| 'cluster' \| false \| undefined;` | optional |  |
| `onPointClick` | `readonly onPointClick?: ((ctx: ChartPointContext, event: MouseEvent) => void) \| undefined;` | optional |  |
| `onPlotClick` | `readonly onPlotClick?: ((point: ChartPlotPoint, event: MouseEvent) => void) \| undefined;` | optional | Any click on the plot, with data coordinates. |
| `onPlotPointerMove` | `readonly onPlotPointerMove?: ((point: ChartPlotPoint, event: PointerEvent) => void) \| undefined;` | optional | Pointer moves over the plot, with data coordinates; called per move (keep it cheap). |
| `onPointHover` | `readonly onPointHover?: ((ctx: ChartPointContext \| null) => void) \| undefined;` | optional |  |
| `onPointChange` | `readonly onPointChange?: ((change: {     readonly seriesId: string;     readonly index: number;     readonly value: number; }, event: ChartChangeEvent<'drag' \| 'keyboard'>) => void) \| undefined;` | optional | An editable point was dragged or moved by keyboard. |
| `onPointDoubleClick` | `readonly onPointDoubleClick?: ((ctx: ChartPointContext, event: MouseEvent) => void) \| undefined;` | optional |  |
| `onAxisLabelClick` | `readonly onAxisLabelClick?: ((ctx: ChartAxisLabelContext, event: MouseEvent) => void) \| undefined;` | optional | A tick label was clicked. |
| `onAxisLabelGroupClick` | `readonly onAxisLabelGroupClick?: ((ctx: {     readonly axisId: string;     readonly group: number;     readonly level: number;     readonly label: string; }, event: MouseEvent) => void) \| undefined;` | optional | A multi-level label cell was clicked. |
| `onResize` | `readonly onResize?: ((size: {     readonly width: number;     readonly height: number; }) => void) \| undefined;` | optional |  |
| `annotations` | `readonly annotations?: readonly ChartAnnotation[] \| undefined;` | optional |  |
| `indicators` | `readonly indicators?: readonly ChartIndicator[] \| undefined;` | optional | Technical indicators; needs `features={[technicalIndicators]}` from `@salmonui/charts/chart/indicators`. |
| `stackLabels` | `readonly stackLabels?: boolean \| {     readonly format?: ChartFormat \| undefined; } \| undefined;` | optional |  |
| `palette` | `readonly palette?: readonly string[] \| undefined;` | optional |  |
| `colorRanges` | `readonly colorRanges?: readonly ChartColorRange[] \| undefined;` | optional | Point colors by y value range, shared with `legend.mode: 'range' \| 'gradient'`. |
| `renderer` | `readonly renderer?: 'svg' \| 'canvas' \| 'auto' \| undefined;` | optional |  |
| `decimation` | `readonly decimation?: 'auto' \| 'lttb' \| 'minMax' \| false \| undefined;` | optional |  |
| `accessibleTable` | `readonly accessibleTable?: boolean \| undefined;` | optional |  |
| `showDataTable` | `readonly showDataTable?: boolean \| undefined;` | optional |  |
| `renderEmpty` | `readonly renderEmpty?: (() => ReactNode) \| undefined;` | optional |  |
| `animated` | `readonly animated?: boolean \| undefined;` | optional |  |
| `locale` | `readonly locale?: string \| undefined;` | optional |  |
| `timeZone` | `readonly timeZone?: string \| undefined;` | optional |  |
| `text` | `readonly text?: Partial<ChartText> \| undefined;` | optional |  |
| `width` | `readonly width?: number \| undefined;` | optional |  |
| `height` | `readonly height?: number \| undefined;` | optional | Drawing height in px (default 300). |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `exportWriters` | `readonly exportWriters?: ChartExportWriters \| undefined;` | optional | Loaders of the PDF and XLSX writers: dynamic imports of |
| `ref` | `readonly ref?: Ref<ChartApi> \| undefined;` | optional |  |
| `children` | `readonly children?: ReactNode;` | optional |  |

### ChartSegment

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartSegment

```ts
interface ChartSegment {
    readonly until?: number | undefined;
    readonly color: string;
    readonly lineStyle?: ChartLineStyle | undefined;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `until` | `readonly until?: number \| undefined;` | optional | Segment applies to values (x or y per `segmentAxis`) up to and including `until`; the last segment has none. |
| `color` | `readonly color: string;` |  |  |
| `lineStyle` | `readonly lineStyle?: ChartLineStyle \| undefined;` | optional |  |

### ChartSeriesOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartSeriesOptions

```ts
interface ChartSeriesOptions {
    readonly id?: string | undefined;
    readonly type?: ChartSeriesType | undefined;
    readonly name?: string | undefined;
    readonly data?: readonly ChartDatum[] | undefined;
    readonly xField?: string | undefined;
    readonly yField?: string | undefined;
    readonly lowField?: string | undefined;
    readonly highField?: string | undefined;
    readonly openField?: string | undefined;
    readonly closeField?: string | undefined;
    readonly volumeField?: string | undefined;
    readonly sizeField?: string | undefined;
    readonly colorField?: string | undefined;
    readonly tooltipField?: string | undefined;
    readonly targetField?: string | readonly string[] | undefined;
    readonly targetShapes?: readonly ('line' | 'circle' | 'cross')[] | undefined;
    readonly targetColor?: string | undefined;
    readonly valueShape?: 'bar' | 'dot' | undefined;
    readonly xAxis?: string | undefined;
    readonly yAxis?: string | undefined;
    readonly curve?: ChartCurve | undefined;
    readonly tension?: number | undefined;
    readonly stepPosition?: 'start' | 'center' | 'end' | undefined;
    readonly risers?: boolean | undefined;
    readonly stack?: boolean | 'percent' | undefined;
    readonly stackGroup?: string | undefined;
    readonly bandWidth?: number | undefined;
    readonly gap?: number | undefined;
    readonly group?: string | undefined;
    readonly radius?: readonly [
        number,
        number
    ] | undefined;
    readonly closed?: boolean | undefined;
    readonly upColor?: string | undefined;
    readonly downColor?: string | undefined;
    readonly hollow?: boolean | undefined;
    readonly totals?: readonly number[] | ((index: number) => boolean) | undefined;
    readonly subtotals?: readonly number[] | ((index: number) => boolean) | undefined;
    readonly connectors?: boolean | undefined;
    readonly binWidth?: number | undefined;
    readonly normalCurve?: boolean | undefined;
    readonly quartileMethod?: 'exclusive' | 'inclusive' | 'normal' | undefined;
    readonly mean?: boolean | undefined;
    readonly outliers?: boolean | undefined;
    readonly errorBars?: ChartErrorBars | undefined;
    readonly pareto?: {
        readonly line?: boolean | undefined;
        readonly markers?: boolean | undefined;
        readonly color?: string | undefined;
    } | undefined;
    readonly segments?: readonly ChartSegment[] | undefined;
    readonly segmentAxis?: 'x' | 'y' | undefined;
    readonly trendlines?: readonly ChartTrendline[] | undefined;
    readonly hidden?: boolean | undefined;
    readonly order?: number | undefined;
    readonly opacity?: number | undefined;
    readonly color?: string | undefined;
    readonly lineStyle?: ChartLineStyle | undefined;
    readonly markers?: boolean | ChartMarkers | undefined;
    readonly renderMarker?: ((ctx: ChartPointContext) => ReactNode) | undefined;
    readonly labels?: boolean | ChartDataLabels | undefined;
    readonly legendShape?: ChartLegendShape | undefined;
    readonly tooltip?: boolean | undefined;
    readonly editable?: boolean | {
        readonly min?: number | undefined;
        readonly max?: number | undefined;
        readonly step?: number | undefined;
    } | undefined;
    readonly description?: string | undefined;
    readonly emptyPoints?: 'gap' | 'zero' | 'drop' | 'average' | undefined;
    readonly lastValue?: boolean | {
        readonly format?: ChartFormat | undefined;
    } | undefined;
    readonly inlineLabel?: boolean | undefined;
    readonly getPointStyle?: ((ctx: ChartPointContext) => {
        readonly color?: string;
        readonly hidden?: boolean;
    } | undefined) | undefined;
}
```

Members (63):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id?: string \| undefined;` | optional | Stable id (default: `name`, then `yField`, then the index). |
| `type` | `readonly type?: ChartSeriesType \| undefined;` | optional |  |
| `name` | `readonly name?: string \| undefined;` | optional |  |
| `data` | `readonly data?: readonly ChartDatum[] \| undefined;` | optional | Per-series data (default: the chart `data`). |
| `xField` | `readonly xField?: string \| undefined;` | optional |  |
| `yField` | `readonly yField?: string \| undefined;` | optional |  |
| `lowField` | `readonly lowField?: string \| undefined;` | optional |  |
| `highField` | `readonly highField?: string \| undefined;` | optional |  |
| `openField` | `readonly openField?: string \| undefined;` | optional |  |
| `closeField` | `readonly closeField?: string \| undefined;` | optional |  |
| `volumeField` | `readonly volumeField?: string \| undefined;` | optional |  |
| `sizeField` | `readonly sizeField?: string \| undefined;` | optional |  |
| `colorField` | `readonly colorField?: string \| undefined;` | optional |  |
| `tooltipField` | `readonly tooltipField?: string \| undefined;` | optional |  |
| `targetField` | `readonly targetField?: string \| readonly string[] \| undefined;` | optional | Bullet target field(s). |
| `targetShapes` | `readonly targetShapes?: readonly ('line' \| 'circle' \| 'cross')[] \| undefined;` | optional | Bullet target glyphs per target field. |
| `targetColor` | `readonly targetColor?: string \| undefined;` | optional | Bullet target data color. |
| `valueShape` | `readonly valueShape?: 'bar' \| 'dot' \| undefined;` | optional | Bullet feature glyph: a bar from zero (default) or a dot at the value. |
| `xAxis` | `readonly xAxis?: string \| undefined;` | optional |  |
| `yAxis` | `readonly yAxis?: string \| undefined;` | optional |  |
| `curve` | `readonly curve?: ChartCurve \| undefined;` | optional |  |
| `tension` | `readonly tension?: number \| undefined;` | optional |  |
| `stepPosition` | `readonly stepPosition?: 'start' \| 'center' \| 'end' \| undefined;` | optional |  |
| `risers` | `readonly risers?: boolean \| undefined;` | optional |  |
| `stack` | `readonly stack?: boolean \| 'percent' \| undefined;` | optional |  |
| `stackGroup` | `readonly stackGroup?: string \| undefined;` | optional |  |
| `bandWidth` | `readonly bandWidth?: number \| undefined;` | optional | Band width as a fraction (0..1) of the category or as px (> 1). |
| `gap` | `readonly gap?: number \| undefined;` | optional |  |
| `group` | `readonly group?: string \| undefined;` | optional | Columns with the same group share a slot (overlap). |
| `radius` | `readonly radius?: readonly [     number,     number ] \| undefined;` | optional |  |
| `closed` | `readonly closed?: boolean \| undefined;` | optional |  |
| `upColor` | `readonly upColor?: string \| undefined;` | optional |  |
| `downColor` | `readonly downColor?: string \| undefined;` | optional |  |
| `hollow` | `readonly hollow?: boolean \| undefined;` | optional |  |
| `totals` | `readonly totals?: readonly number[] \| ((index: number) => boolean) \| undefined;` | optional |  |
| `subtotals` | `readonly subtotals?: readonly number[] \| ((index: number) => boolean) \| undefined;` | optional |  |
| `connectors` | `readonly connectors?: boolean \| undefined;` | optional |  |
| `binWidth` | `readonly binWidth?: number \| undefined;` | optional |  |
| `normalCurve` | `readonly normalCurve?: boolean \| undefined;` | optional |  |
| `quartileMethod` | `readonly quartileMethod?: 'exclusive' \| 'inclusive' \| 'normal' \| undefined;` | optional |  |
| `mean` | `readonly mean?: boolean \| undefined;` | optional |  |
| `outliers` | `readonly outliers?: boolean \| undefined;` | optional |  |
| `errorBars` | `readonly errorBars?: ChartErrorBars \| undefined;` | optional |  |
| `pareto` | `readonly pareto?: {     readonly line?: boolean \| undefined;     readonly markers?: boolean \| undefined;     readonly color?: string \| undefined; } \| undefined;` | optional | Pareto cumulative line options (`type: 'pareto'`). |
| `segments` | `readonly segments?: readonly ChartSegment[] \| undefined;` | optional |  |
| `segmentAxis` | `readonly segmentAxis?: 'x' \| 'y' \| undefined;` | optional |  |
| `trendlines` | `readonly trendlines?: readonly ChartTrendline[] \| undefined;` | optional |  |
| `hidden` | `readonly hidden?: boolean \| undefined;` | optional |  |
| `order` | `readonly order?: number \| undefined;` | optional |  |
| `opacity` | `readonly opacity?: number \| undefined;` | optional |  |
| `color` | `readonly color?: string \| undefined;` | optional | Data color (not a theme token); default: the palette slot. |
| `lineStyle` | `readonly lineStyle?: ChartLineStyle \| undefined;` | optional |  |
| `markers` | `readonly markers?: boolean \| ChartMarkers \| undefined;` | optional |  |
| `renderMarker` | `readonly renderMarker?: ((ctx: ChartPointContext) => ReactNode) \| undefined;` | optional | SVG content in place of each marker, centered on the point (`<image>`, any shape). |
| `labels` | `readonly labels?: boolean \| ChartDataLabels \| undefined;` | optional |  |
| `legendShape` | `readonly legendShape?: ChartLegendShape \| undefined;` | optional |  |
| `tooltip` | `readonly tooltip?: boolean \| undefined;` | optional |  |
| `editable` | `readonly editable?: boolean \| {     readonly min?: number \| undefined;     readonly max?: number \| undefined;     readonly step?: number \| undefined; } \| undefined;` | optional | Point drag and keyboard editing of y values; the change is reported, the application updates `data`. |
| `description` | `readonly description?: string \| undefined;` | optional |  |
| `emptyPoints` | `readonly emptyPoints?: 'gap' \| 'zero' \| 'drop' \| 'average' \| undefined;` | optional |  |
| `lastValue` | `readonly lastValue?: boolean \| {     readonly format?: ChartFormat \| undefined; } \| undefined;` | optional |  |
| `inlineLabel` | `readonly inlineLabel?: boolean \| undefined;` | optional |  |
| `getPointStyle` | `readonly getPointStyle?: ((ctx: ChartPointContext) => {     readonly color?: string;     readonly hidden?: boolean; } \| undefined) \| undefined;` | optional | Per-point style: data color or hidden. Called only for drawn points. |

### ChartSyncGroupProps

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartSyncGroupProps

```ts
interface ChartSyncGroupProps {
    readonly tooltip?: boolean | undefined;
    readonly crosshair?: boolean | undefined;
    readonly zoom?: boolean | undefined;
    readonly selection?: boolean | undefined;
    readonly children?: ReactNode;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `tooltip` | `readonly tooltip?: boolean \| undefined;` | optional | Share the tooltip position. Default true. |
| `crosshair` | `readonly crosshair?: boolean \| undefined;` | optional | Share the crosshair position. Default true. |
| `zoom` | `readonly zoom?: boolean \| undefined;` | optional | Share the x zoom range. Default true. |
| `selection` | `readonly selection?: boolean \| undefined;` | optional | Share the selected point indices between charts that have `selection`. Default true. |
| `children` | `readonly children?: ReactNode;` | optional |  |

### ChartText

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartText

```ts
interface ChartText {
    readonly chart: string;
    readonly noData: string;
    readonly legend: string;
    readonly table: string;
    readonly moreRows: (count: number) => string;
    readonly zoomToolbar: string;
    readonly zoomTool: string;
    readonly zoomIn: string;
    readonly zoomOut: string;
    readonly pan: string;
    readonly resetZoom: string;
    readonly previousLegendPage: string;
    readonly nextLegendPage: string;
}
```

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `chart` | `readonly chart: string;` |  |  |
| `noData` | `readonly noData: string;` |  |  |
| `legend` | `readonly legend: string;` |  |  |
| `table` | `readonly table: string;` |  |  |
| `moreRows` | `readonly moreRows: (count: number) => string;` |  |  |
| `zoomToolbar` | `readonly zoomToolbar: string;` |  | Zoom toolbar names. |
| `zoomTool` | `readonly zoomTool: string;` |  |  |
| `zoomIn` | `readonly zoomIn: string;` |  |  |
| `zoomOut` | `readonly zoomOut: string;` |  |  |
| `pan` | `readonly pan: string;` |  |  |
| `resetZoom` | `readonly resetZoom: string;` |  |  |
| `previousLegendPage` | `readonly previousLegendPage: string;` |  | Legend page buttons. |
| `nextLegendPage` | `readonly nextLegendPage: string;` |  |  |

### ChartTooltipContext

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartTooltipContext

```ts
interface ChartTooltipContext {
    readonly header: string;
    readonly points: readonly ChartPointContext[];
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `header` | `readonly header: string;` |  |  |
| `points` | `readonly points: readonly ChartPointContext[];` |  |  |

### ChartTooltipOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartTooltipOptions

```ts
interface ChartTooltipOptions {
    readonly mode?: 'point' | 'shared' | 'split' | undefined;
    readonly position?: 'nearest' | 'pointer' | {
        readonly x: number;
        readonly y: number;
    } | undefined;
    readonly offset?: number | undefined;
    readonly format?: ((ctx: ChartPointContext) => string) | undefined;
    readonly header?: string | ((ctx: ChartTooltipContext) => string) | undefined;
    readonly render?: ((ctx: ChartTooltipContext) => ReactNode) | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `mode` | `readonly mode?: 'point' \| 'shared' \| 'split' \| undefined;` | optional | `'shared'`: one box for every series at the x; `'split'`: one box per series at its own point. |
| `position` | `readonly position?: 'nearest' \| 'pointer' \| {     readonly x: number;     readonly y: number; } \| undefined;` | optional | `'nearest'` (default): above the nearest point; `'pointer'`: follows the pointer; `{ x, y }`: fixed drawing px. |
| `offset` | `readonly offset?: number \| undefined;` | optional | Gap between the anchor and the box, px (default 10). |
| `format` | `readonly format?: ((ctx: ChartPointContext) => string) \| undefined;` | optional |  |
| `header` | `readonly header?: string \| ((ctx: ChartTooltipContext) => string) \| undefined;` | optional |  |
| `render` | `readonly render?: ((ctx: ChartTooltipContext) => ReactNode) \| undefined;` | optional |  |

### ChartTrendline

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartTrendline

```ts
interface ChartTrendline {
    readonly kind: 'linear' | 'exponential' | 'logarithmic' | 'polynomial' | 'power' | 'movingAverage';
    readonly order?: number | undefined;
    readonly period?: number | undefined;
    readonly forecast?: {
        readonly forward?: number | undefined;
        readonly backward?: number | undefined;
    } | undefined;
    readonly intercept?: number | undefined;
    readonly name?: string | undefined;
    readonly color?: string | undefined;
    readonly markers?: boolean | ChartMarkers | undefined;
    readonly tooltip?: boolean | undefined;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'linear' \| 'exponential' \| 'logarithmic' \| 'polynomial' \| 'power' \| 'movingAverage';` |  |  |
| `order` | `readonly order?: number \| undefined;` | optional |  |
| `period` | `readonly period?: number \| undefined;` | optional |  |
| `forecast` | `readonly forecast?: {     readonly forward?: number \| undefined;     readonly backward?: number \| undefined; } \| undefined;` | optional |  |
| `intercept` | `readonly intercept?: number \| undefined;` | optional |  |
| `name` | `readonly name?: string \| undefined;` | optional |  |
| `color` | `readonly color?: string \| undefined;` | optional |  |
| `markers` | `readonly markers?: boolean \| ChartMarkers \| undefined;` | optional | Markers on the fitted line (default off); a fitted line then samples one point per data point, up to 256. |
| `tooltip` | `readonly tooltip?: boolean \| undefined;` | optional | Tooltip and keyboard focus on the line (default: the series' `tooltip`). |

### ChartZoomOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/chart/ChartZoomOptions

```ts
interface ChartZoomOptions {
    readonly wheel?: boolean | undefined;
    readonly selection?: boolean | undefined;
    readonly pan?: boolean | undefined;
    readonly pinch?: boolean | undefined;
    readonly mode?: 'x' | 'y' | 'xy' | undefined;
    readonly deferred?: boolean | undefined;
    readonly toolbar?: boolean | readonly ChartZoomTool[] | undefined;
    readonly toolbarPosition?: 'topEnd' | 'topStart' | 'bottomEnd' | 'bottomStart' | undefined;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `wheel` | `readonly wheel?: boolean \| undefined;` | optional |  |
| `selection` | `readonly selection?: boolean \| undefined;` | optional |  |
| `pan` | `readonly pan?: boolean \| undefined;` | optional |  |
| `pinch` | `readonly pinch?: boolean \| undefined;` | optional | Two-finger pinch on touch screens. |
| `mode` | `readonly mode?: 'x' \| 'y' \| 'xy' \| undefined;` | optional |  |
| `deferred` | `readonly deferred?: boolean \| undefined;` | optional | Pan moves the drawn series and commits on release instead of laying out every frame. |
| `toolbar` | `readonly toolbar?: boolean \| readonly ChartZoomTool[] \| undefined;` | optional | Zoom toolbar: `true` for every tool, or the tools to show. |
| `toolbarPosition` | `readonly toolbarPosition?: 'topEnd' \| 'topStart' \| 'bottomEnd' \| 'bottomStart' \| undefined;` | optional |  |

## Types

### ChartCurve

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartCurve

```ts
type ChartCurve = 'linear' | 'natural' | 'monotone' | 'cardinal' | 'clamped' | 'step';
```

### ChartDatum

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartDatum

```ts
type ChartDatum = Readonly<Record<string, unknown>>;
```

A datum: a plain record read by field names (nested paths allowed, `'price.close'`).

### ChartExportWriters

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartExportWriters

```ts
type ChartExportWriters = VizExportWriters;
```

Writer loaders of `api.export`: dynamic imports of `@salmonui/export` subpaths.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `pdf` | `pdf?: (() => Promise<{ readonly writeGraphicsPdf: (...args: never[]) => Promise<{ readonly data: Uint8Array<ArrayBufferLike>; }>; }>);` | optional, inherited | A dynamic import of |
| `xlsx` | `xlsx?: (() => Promise<{ readonly writeXlsx: (...args: never[]) => Promise<Uint8Array<ArrayBufferLike>>; }>);` | optional, inherited | A dynamic import of |

### ChartFormat

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartFormat

```ts
type ChartFormat = string | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions;
```

A number preset (`'n2'`, `'c0'`, `'p1'`), a `{value}` template (`'{value} °C'`), or `Intl` options.

### ChartLabelOverlap

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartLabelOverlap

```ts
type ChartLabelOverlap = 'none' | 'hide' | 'trim' | 'wrap' | 'stagger' | 'rotate45' | 'rotate90';
```

### ChartLegendShape

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartLegendShape

```ts
type ChartLegendShape = ChartMarkerShape | 'seriesType';
```

### ChartLineStyle

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartLineStyle

```ts
type ChartLineStyle = 'solid' | 'dashed' | 'dotted';
```

### ChartMarkerShape

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartMarkerShape

```ts
type ChartMarkerShape = 'circle' | 'rectangle' | 'triangle' | 'invertedTriangle' | 'diamond' | 'cross' | 'plus' | 'multiply' | 'horizontalLine' | 'verticalLine' | 'pentagon' | 'star' | 'none';
```

### ChartPaneSize

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartPaneSize

```ts
type ChartPaneSize = number | string | {
    readonly size?: number | string | undefined;
};
```

A pane row height or column width: px, `'n%'` of the plot, or `{ size }`; unsized panes share the rest.

### ChartScale

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartScale

```ts
type ChartScale = 'linear' | 'log' | 'time' | 'category' | 'timeCategory';
```

### ChartSeriesProps

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartSeriesProps

```ts
type ChartSeriesProps = ChartSeriesOptions;
```

Members (63):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `id?: string;` | optional, inherited | Stable id (default: `name`, then `yField`, then the index). |
| `type` | `type?: ChartSeriesType;` | optional, inherited |  |
| `name` | `name?: string;` | optional, inherited |  |
| `data` | `data?: readonly Readonly<Record<string, unknown>>[];` | optional, inherited | Per-series data (default: the chart `data`). |
| `xField` | `xField?: string;` | optional, inherited |  |
| `yField` | `yField?: string;` | optional, inherited |  |
| `lowField` | `lowField?: string;` | optional, inherited |  |
| `highField` | `highField?: string;` | optional, inherited |  |
| `openField` | `openField?: string;` | optional, inherited |  |
| `closeField` | `closeField?: string;` | optional, inherited |  |
| `volumeField` | `volumeField?: string;` | optional, inherited |  |
| `sizeField` | `sizeField?: string;` | optional, inherited |  |
| `colorField` | `colorField?: string;` | optional, inherited |  |
| `tooltipField` | `tooltipField?: string;` | optional, inherited |  |
| `targetField` | `targetField?: string \| readonly string[];` | optional, inherited | Bullet target field(s). |
| `targetShapes` | `targetShapes?: readonly ("circle" \| "cross" \| "line")[];` | optional, inherited | Bullet target glyphs per target field. |
| `targetColor` | `targetColor?: string;` | optional, inherited | Bullet target data color. |
| `valueShape` | `valueShape?: "bar" \| "dot";` | optional, inherited | Bullet feature glyph: a bar from zero (default) or a dot at the value. |
| `xAxis` | `xAxis?: string;` | optional, inherited |  |
| `yAxis` | `yAxis?: string;` | optional, inherited |  |
| `curve` | `curve?: ChartCurve;` | optional, inherited |  |
| `tension` | `tension?: number;` | optional, inherited |  |
| `stepPosition` | `stepPosition?: "center" \| "end" \| "start";` | optional, inherited |  |
| `risers` | `risers?: boolean;` | optional, inherited |  |
| `stack` | `stack?: "percent" \| boolean;` | optional, inherited |  |
| `stackGroup` | `stackGroup?: string;` | optional, inherited |  |
| `bandWidth` | `bandWidth?: number;` | optional, inherited | Band width as a fraction (0..1) of the category or as px (> 1). |
| `gap` | `gap?: number;` | optional, inherited |  |
| `group` | `group?: string;` | optional, inherited | Columns with the same group share a slot (overlap). |
| `radius` | `radius?: readonly [number, number];` | optional, inherited |  |
| `closed` | `closed?: boolean;` | optional, inherited |  |
| `upColor` | `upColor?: string;` | optional, inherited |  |
| `downColor` | `downColor?: string;` | optional, inherited |  |
| `hollow` | `hollow?: boolean;` | optional, inherited |  |
| `totals` | `totals?: readonly number[] \| ((index: number) => boolean);` | optional, inherited |  |
| `subtotals` | `subtotals?: readonly number[] \| ((index: number) => boolean);` | optional, inherited |  |
| `connectors` | `connectors?: boolean;` | optional, inherited |  |
| `binWidth` | `binWidth?: number;` | optional, inherited |  |
| `normalCurve` | `normalCurve?: boolean;` | optional, inherited |  |
| `quartileMethod` | `quartileMethod?: "exclusive" \| "inclusive" \| "normal";` | optional, inherited |  |
| `mean` | `mean?: boolean;` | optional, inherited |  |
| `outliers` | `outliers?: boolean;` | optional, inherited |  |
| `errorBars` | `errorBars?: ChartErrorBars;` | optional, inherited |  |
| `pareto` | `pareto?: { readonly line?: boolean \| undefined; readonly markers?: boolean \| undefined; readonly color?: string \| undefined; };` | optional, inherited | Pareto cumulative line options (`type: 'pareto'`). |
| `segments` | `segments?: readonly ChartSegment[];` | optional, inherited |  |
| `segmentAxis` | `segmentAxis?: "x" \| "y";` | optional, inherited |  |
| `trendlines` | `trendlines?: readonly ChartTrendline[];` | optional, inherited |  |
| `hidden` | `hidden?: boolean;` | optional, inherited |  |
| `order` | `order?: number;` | optional, inherited |  |
| `opacity` | `opacity?: number;` | optional, inherited |  |
| `color` | `color?: string;` | optional, inherited | Data color (not a theme token); default: the palette slot. |
| `lineStyle` | `lineStyle?: ChartLineStyle;` | optional, inherited |  |
| `markers` | `markers?: boolean \| ChartMarkers;` | optional, inherited |  |
| `renderMarker` | `renderMarker?: ((ctx: ChartPointContext) => ReactNode);` | optional, inherited | SVG content in place of each marker, centered on the point (`<image>`, any shape). |
| `labels` | `labels?: boolean \| ChartDataLabels;` | optional, inherited |  |
| `legendShape` | `legendShape?: ChartLegendShape;` | optional, inherited |  |
| `tooltip` | `tooltip?: boolean;` | optional, inherited |  |
| `editable` | `editable?: boolean \| { readonly min?: number \| undefined; readonly max?: number \| undefined; readonly step?: number \| undefined; };` | optional, inherited | Point drag and keyboard editing of y values; the change is reported, the application updates `data`. |
| `description` | `description?: string;` | optional, inherited |  |
| `emptyPoints` | `emptyPoints?: "average" \| "drop" \| "gap" \| "zero";` | optional, inherited |  |
| `lastValue` | `lastValue?: boolean \| { readonly format?: ChartFormat \| undefined; };` | optional, inherited |  |
| `inlineLabel` | `inlineLabel?: boolean;` | optional, inherited |  |
| `getPointStyle` | `getPointStyle?: ((ctx: ChartPointContext) => { readonly color?: string; readonly hidden?: boolean; } \| undefined);` | optional, inherited | Per-point style: data color or hidden. Called only for drawn points. |

### ChartSeriesType

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartSeriesType

```ts
type ChartSeriesType = 'line' | 'area' | 'column' | 'bar' | 'scatter' | 'bubble' | 'hilo' | 'ohlc' | 'candle' | 'waterfall' | 'histogram' | 'boxPlot' | 'pareto' | 'bullet';
```

### ChartZoomRange

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartZoomRange

```ts
type ChartZoomRange = Readonly<Record<string, readonly [
    number,
    number
]>>;
```

### ChartZoomTool

Kind: type

Page: https://salmonui.dev/docs/reference/charts/chart/ChartZoomTool

```ts
type ChartZoomTool = 'zoom' | 'zoomIn' | 'zoomOut' | 'pan' | 'reset';
```
