# PivotChartSeries (@salmonui/pivot-table)

> The PivotChartSeries interface of @salmonui/pivot-table: One Chart series (ChartSeriesOptions) of a pivot measure.

Canonical: https://salmonui.dev/docs/reference/pivot-table/PivotChartSeries

```ts
import type { PivotChartSeries } from '@salmonui/pivot-table';
```

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

## Reference

Kind: interface

```ts
interface PivotChartSeries extends ChartSeriesOptions {
    readonly id: string;
    readonly name: string;
    readonly type: ChartSeriesType;
    readonly xField: 'category';
    readonly yField: string;
    readonly pivotType: PivotChartSeriesType;
}
```

One `Chart` series (`ChartSeriesOptions`) of a pivot measure.

Members (64):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable id (default: `name`, then `yField`, then the index). |
| `name` | `readonly name: string;` |  |  |
| `type` | `readonly type: ChartSeriesType;` |  |  |
| `xField` | `readonly xField: 'category';` |  | The category field of `data` records. |
| `yField` | `readonly yField: string;` |  | The field of this series in `data` records (the series id). |
| `pivotType` | `readonly pivotType: PivotChartSeriesType;` |  | The requested pivot chart type (`type` is the `Chart` series type it draws as). |
| `data` | `data?: readonly Readonly<Record<string, unknown>>[];` | optional, inherited | Per-series data (default: the chart `data`). |
| `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. |
