@tanstack/charts
Version:
A chart grammar for TypeScript and JavaScript. Marks consume your data directly, channels describe visual encodings, and the engine compiles them into a renderer-neutral keyed scene. TanStack's compact scales cover common numeric and categorical mappings.
35 lines (28 loc) • 985 B
Markdown
# `/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).