# ChartSeriesProps (@salmonui/charts/chart)

> The ChartSeriesProps type of @salmonui/charts/chart.

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

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

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

## Reference

Kind: type

```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. |
