@tanstack/angular-charts
v0.18.0
Published
<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="htt
Readme
@tanstack/angular-charts
This compatibility package remains supported for existing applications. New
applications use the Angular standalone component from
@tanstack/charts/angular.
pnpm add @tanstack/charts @angular/core @angular/platform-browserimport { defineChart } from '@tanstack/charts'
import { tooltip } from '@tanstack/charts/tooltip'
import { Chart } from '@tanstack/charts/angular'
@Component({
imports: [Chart],
template: `<tanstack-chart [options]="chartOptions" />`,
})
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
and
Chart reference.
