@tanstack/svelte-charts
v0.18.0
Published
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?framework=svelte&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="http
Readme
@tanstack/svelte-charts
This compatibility package remains supported for existing applications. New
applications use the Svelte adapter from @tanstack/charts/svelte.
pnpm add @tanstack/charts svelte<script lang="ts">
import { defineChart } from '@tanstack/charts'
import { tooltip } from '@tanstack/charts/tooltip'
import { Chart } from '@tanstack/charts/svelte'
const interactiveDefinition = defineChart(definition, { tooltip })
</script>
<Chart definition={interactiveDefinition} ariaLabel="Revenue by month" />The adapter renders SVG during SSR and adopts it after mount.
Read the published
Svelte adapter guide
and
Chart reference.
