@tanstack/lit-charts
v0.18.0
Published
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?framework=lit&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https:/
Readme
@tanstack/lit-charts
This compatibility package remains supported for existing applications. New
applications use the Lit custom-element adapter from @tanstack/charts/lit.
pnpm add @tanstack/charts litimport { defineChart } from '@tanstack/charts'
import { tooltip } from '@tanstack/charts/tooltip'
import { defineChartElement } from '@tanstack/charts/lit'
defineChartElement()html`<tanstack-chart
.options=${{
definition: defineChart(definition, { tooltip }),
ariaLabel: 'Revenue by month',
}}
></tanstack-chart>`The element renders in light DOM so inherited typography, responsive measurement, and chart styles behave like the framework-neutral host.
Read the published
Lit adapter guide
and
Chart reference.
