# ExportVisualizationsOptions (@salmonui/charts/chart/export)

> The ExportVisualizationsOptions interface of @salmonui/charts/chart/export.

Canonical: https://salmonui.dev/docs/reference/charts/chart-export/ExportVisualizationsOptions

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

Also exported from `@salmonui/charts/pie-chart`, `@salmonui/charts/heat-map`, `@salmonui/charts/tree-map`, `@salmonui/charts/sankey-chart`, `@salmonui/charts/barcode`, `@salmonui/charts/barcode/pdf417`, `@salmonui/charts/barcode/gs1-databar`, `@salmonui/charts/barcode/dotcode`.

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

## Reference

Kind: interface

```ts
interface ExportVisualizationsOptions {
    readonly format?: 'png' | 'jpeg' | 'svg' | 'pdf' | undefined;
    readonly direction?: 'vertical' | 'horizontal' | undefined;
    readonly gap?: number | undefined;
    readonly fileName?: string | undefined;
    readonly scale?: number | undefined;
    readonly orientation?: 'portrait' | 'landscape' | undefined;
    readonly pageSize?: string | undefined;
    readonly writers?: Pick<VizExportWriters, 'pdf'> | undefined;
    readonly download?: boolean | undefined;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `format` | `readonly format?: 'png' \| 'jpeg' \| 'svg' \| 'pdf' \| undefined;` | optional | Default `png`. |
| `direction` | `readonly direction?: 'vertical' \| 'horizontal' \| undefined;` | optional | Stack the drawings top to bottom (default) or side by side. |
| `gap` | `readonly gap?: number \| undefined;` | optional | Space between drawings in px. Default 16. |
| `fileName` | `readonly fileName?: string \| undefined;` | optional | Default `visualizations.<format>`. |
| `scale` | `readonly scale?: number \| undefined;` | optional | Raster scale on top of the device pixel ratio. |
| `orientation` | `readonly orientation?: 'portrait' \| 'landscape' \| undefined;` | optional | PDF page orientation and size (`format: 'pdf'`). |
| `pageSize` | `readonly pageSize?: string \| undefined;` | optional |  |
| `writers` | `readonly writers?: Pick<VizExportWriters, 'pdf'> \| undefined;` | optional | `pdf` needs `writers.pdf` (a dynamic import of |
| `download` | `readonly download?: boolean \| undefined;` | optional | Download the file (default true); the promise resolves to it either way. |
