# ChartAnnotation (@salmonui/charts/chart)

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

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

```ts
import type { ChartAnnotation } 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 ChartAnnotation {
    readonly x: number | string | Date;
    readonly y: number;
    readonly units?: 'data' | 'pixel' | undefined;
    readonly xAxis?: string | undefined;
    readonly yAxis?: string | undefined;
    readonly content: ReactNode;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `x` | `readonly x: number \| string \| Date;` |  |  |
| `y` | `readonly y: number;` |  |  |
| `units` | `readonly units?: 'data' \| 'pixel' \| undefined;` | optional |  |
| `xAxis` | `readonly xAxis?: string \| undefined;` | optional |  |
| `yAxis` | `readonly yAxis?: string \| undefined;` | optional |  |
| `content` | `readonly content: ReactNode;` |  |  |
