ui

Chart

Beautiful charts. Built using Recharts. Copy and paste into your apps. Built with Tailwind CSS. Copy-paste ready.

Installation

Usage

Examples

Multi-Series Bar Chart

Two data series displayed side-by-side as grouped bars. Colors are defined directly in chartConfig and resolved via CSS variables through ChartContainer.

Area Chart

A single-series area chart with a grid, X-axis labels, and a tooltip. Uses type="natural" for smooth curved lines and fillOpacity for the semi-transparent fill.

Bar Chart

A single-series bar chart with rounded corners, a Cartesian grid, abbreviated month labels on the X-axis, and a tooltip that hides the series label.

Line Chart

A single-series line chart without dots, using natural curve interpolation. The tooltip shows the value on hover without repeating the axis label.

Pie Chart

A proportional pie chart showing browser share across five segments. Each segment maps to a --chart-N CSS variable so colors stay in sync with the active theme.

Radar Chart

A spider/radar chart with a polar grid and angle axis labels. Useful for comparing a single metric across multiple categories — here, monthly desktop traffic.

Radial Bar Chart

A radial bar chart with a background track. Each segment corresponds to a browser, with inner and outer radii controlling the ring thickness.

Stacked Area Chart

Two revenue streams (recurring and one-time) stacked in a single area chart with a Y-axis in dollar thousands and a legend for series identification.

Horizontal Bar Chart

A horizontal bar chart ranking traffic acquisition channels by session count — layout is set to "vertical" with a category Y-axis and a value X-axis.

Donut Chart With Center Label

A donut-style pie chart with padding between segments and a centered SVG label showing total headcount, broken down by department with a legend.

Multi-Series Line Chart

Three API latency percentiles (p50, p90, p99) plotted as lines with distinct dash patterns. Each series uses a var(--chart-N) color resolved through ChartContainer.

Composed Chart

Revenue bars and a month-over-month growth percentage line share the same chart on dual Y-axes — left for dollar values and right for percentage values.