# @salmonui/charts/server API reference

> 2 exported symbols of @salmonui/charts/server: 1 function and 1 interface.

Canonical: https://salmonui.dev/docs/reference/charts/server

```ts
import { … } from '@salmonui/charts/server';
```

## Functions

### visualizationSvg

Kind: function

Page: https://salmonui.dev/docs/reference/charts/server/visualizationSvg

```ts
function visualizationSvg(html: string, options?: VisualizationSvgOptions): string;
```

Standalone SVG markup of the first visualization in server-rendered HTML
(`renderToStaticMarkup(<Chart ... />)`): the drawing of the plot surface
(or the root `<svg>` of `Sparkline`, `Barcode` and `QRCode`), with `xmlns`,
theme colors resolved and the chrome styled. Empty when there is no SVG.

## Interfaces

### VisualizationSvgOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/charts/server/VisualizationSvgOptions

```ts
interface VisualizationSvgOptions {
    readonly theme?: SalmonThemeInput | undefined;
    readonly colorScheme?: 'light' | 'dark' | undefined;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `theme` | `readonly theme?: SalmonThemeInput \| undefined;` | optional | Theme seeds (as `ThemeProvider` / `createThemeCss`). Default: the default theme. |
| `colorScheme` | `readonly colorScheme?: 'light' \| 'dark' \| undefined;` | optional | Default `light`. |
