# pivotChartImage (@salmonui/pivot-table)

> The pivotChartImage function of @salmonui/pivot-table: A chart image for exportPivot({ format: 'pdf', chart }) or api.exportToPdf({ chart }) (table and chart in one PDF): the chart's PNG (or JPEG) with its drawing size in CSS px.

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

```ts
import { pivotChartImage } 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: function

```ts
function pivotChartImage(chart: Pick<ChartApi, 'toBlob' | 'element'>, format?: 'png' | 'jpeg'): Promise<ExportImage>;
```

A chart image for `exportPivot({ format: 'pdf', chart })` or
`api.exportToPdf({ chart })` (table and chart in one PDF): the
chart's PNG (or JPEG) with its drawing size in CSS px.
