# visualizationSvg (@salmonui/charts/server)

> The visualizationSvg function of @salmonui/charts/server: Standalone SVG markup of the first visualization in server-rendered HTML (renderToStaticMarkup(&lt;Chart ... />)): the drawing of the plot surface (or the root &lt;svg> of Sparkline, Barcode and QRCode), with xmlns, theme colors resolved and the chrome styled. Empty when there is no SVG.

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

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

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

## Reference

Kind: function

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