# ChartExportOptions (@salmonui/charts/chart)

> The ChartExportOptions interface of @salmonui/charts/chart.

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

```ts
import type { ChartExportOptions } 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: interface

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