Components
Charts
Glassmorphism-styled area and bar charts built on Recharts, with a shared glass tooltip.
GlassAreaChart
GlassBarChart
GlassChartTooltip
The tooltip is used automatically inside GlassAreaChart and GlassBarChart. You can also use it standalone with Recharts.
Props — GlassAreaChart / GlassBarChart
| Prop | Type | Default | Description |
|---|---|---|---|
data | object[] | — | Array of data objects (required) |
index | string | — | Key used for the X-axis labels (required) |
categories | { key: string; color: string; name?: string }[] | — | Data series to render (required) |
height | number | 300 | Chart height in pixels |
className | string | — | Additional CSS classes on the wrapper div |
Props — GlassChartTooltip
| Prop | Type | Default | Description |
|---|---|---|---|
valuePrefix | string | "" | String prepended to each value (e.g. "$") |
valueSuffix | string | "" | String appended to each value (e.g. "%") |