Patterns
Charts
Line, bar, and area, drawn with Recharts and coloured by the chart tokens so a theme change recolours the series.
Buy nowCharts exists so designers, engineers, and AI start from the same decision. The preview on this page is the component as it ships. You compose it. You do not redraw it.
Use it when the job matches the name. Reach for a neighbour in the system when it does not. Names in Figma match the names in code, which is what keeps a prototype close to what actually ships.
Tokens
| Token | Value | Use |
|---|---|---|
| --charts-bg | var(--background) | Surface behind the control |
| --charts-fg | var(--foreground) | Label and icon |
| --charts-border | var(--border) | Edge |
| --radius-md | 10px | Default corner |
| --duration-fast | 120ms | Hover and press |
Code
<LineChart data={series}>
<Line dataKey="value" stroke="var(--chart-1)" />
</LineChart>Included
- Line, bar, and area charts
Memorisely