# PivotAxisField (@salmonui/pivot-table/engine)

> The PivotAxisField interface of @salmonui/pivot-table/engine: A field placed on the rows, columns or filters axis.

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

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

Also exported from `@salmonui/pivot-table`.

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

## Reference

Kind: interface

```ts
interface PivotAxisField {
    readonly field: string;
    readonly caption?: string;
    readonly showSubTotals?: boolean;
}
```

A field placed on the rows, columns or filters axis.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  |  |
| `caption` | `readonly caption?: string;` | optional |  |
| `showSubTotals` | `readonly showSubTotals?: boolean;` | optional | Per-field subtotal visibility; overrides `totals.sub`. |
