Charts
Live example
Charts
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/charts.jsonAPI reference
These are the main Charts options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
title | string (required) | — |
data / x / series | readonly T[] / category accessor / ChartSeries<T>[] | — |
height | number | 260 |
curve | linear | smooth | step | linear |
points / legend | boolean | true |
onSelect | (row, seriesId) => void | — |
Usage notes
Provide a meaningful title and readable data. Keep a tabular alternative available. Import charts from the optional subpath so a basic control does not require the chart engine.