@tanstack/charts
Version:
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/
53 lines (45 loc) • 1.47 kB
Markdown
<div align="center">
<picture>
<source
media="(prefers-color-scheme: dark)"
srcset="https://tanstack.com/api/readme/charts.png?framework=angular&theme=dark"
/>
<source
media="(prefers-color-scheme: light)"
srcset="https://tanstack.com/api/readme/charts.png?framework=angular"
/>
<img
src="https://tanstack.com/api/readme/charts.png?framework=angular"
alt="TanStack Angular Charts"
width="900"
/>
</picture>
</div>
# `/angular-charts`
This compatibility package remains supported for existing applications. New
applications use the Angular standalone component from
`/charts/angular`.
```sh
pnpm add /charts /core /platform-browser
```
```ts
import { defineChart } from '@tanstack/charts'
import { tooltip } from '@tanstack/charts/tooltip'
import { Chart } from '@tanstack/charts/angular'
export class RevenueChart {
chartOptions = {
definition: defineChart(definition, { tooltip }),
ariaLabel: 'Revenue by month',
}
}
```
The component accepts one typed `options` input so Angular can track it as a
single signal or immutable value.
Read the published
[Angular adapter guide](https://tanstack.com/charts/latest/docs/framework/angular/adapter)
and
[`Chart` reference](https://tanstack.com/charts/latest/docs/framework/angular/reference/chart).