# SparklineCanvasRenderer (@salmonui/charts/sparkline)

> The SparklineCanvasRenderer type of @salmonui/charts/sparkline: Draws the mark elements (&lt;path>, &lt;rect>, &lt;circle>) on a canvas of width x height drawing px.

Canonical: https://salmonui.dev/docs/reference/charts/sparkline/SparklineCanvasRenderer

```ts
import type { SparklineCanvasRenderer } from '@salmonui/charts/sparkline';
```

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

## Reference

Kind: type

```ts
type SparklineCanvasRenderer = (canvas: HTMLCanvasElement, marks: readonly ReactElement[], width: number, height: number) => void;
```

Draws the mark elements (`<path>`, `<rect>`, `<circle>`) on a canvas of `width` x `height` drawing px.
