@tanstack/preact-charts
v0.18.0
Published
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?framework=preact&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="http
Readme
@tanstack/preact-charts
This compatibility package remains supported for existing applications. New
applications use the Preact adapter from @tanstack/charts/preact.
pnpm add @tanstack/charts preactimport { defineChart } from '@tanstack/charts'
import { tooltip } from '@tanstack/charts/tooltip'
import { Chart } from '@tanstack/charts/preact'
const interactiveDefinition = defineChart(definition, { tooltip })
;<Chart definition={interactiveDefinition} ariaLabel="Revenue by month" />The adapter renders SVG on the server and adopts it on the client. Chart
definitions, rendering, interaction, and animation remain in
@tanstack/charts.
Read the published
Preact adapter guide
and
Chart reference.
