Line chart
Trends over time for one to four series, with gaps for missing data and marked forecasts.
47 React chart components for finance, SaaS and analytics. One file each, no chart library underneath, and honest when the data is messy.
React 18 & 19 · TypeScript · Light & dark · Works with the shadcn CLI
Works with the stack you already use
Trends, comparisons, parts of a whole, SaaS metrics and finance: one consistent set, light and dark.
Trends over time for one to four series, with gaps for missing data and marked forecasts.
A line with a light wash to zero, for volume over time.
A total over time and what it's made of, in absolute terms or as 100% shares.
Measures in different units rebased to 100, so growth compares on one honest axis.
One small chart per group on a shared scale, instead of a ten-colour spaghetti chart.
A word-sized trend for tiles, tables and inline text.
“ChartslibraryUI has definitely unlocked layers of complex visualization that are hard to reach independently. A huge time saver when doing deep, explorative work and trying to summarize findings.”
Ready-made Pro blocks, or compose your own: every view below is built only from the components in the library.
Connect once. Your coding agent finds the right chart, reads when to use it, and installs it.
search_items“revenue forecast”→ Line chart, Actual vs forecastview_itemsline-chart→ use for, avoid when, propsshadcn add@chartslibraryui/line-chart→ components/charts/line-chart.tsxAdded a line chart above your KPIs. Actuals are solid, September onwards is dashed and labelled as forecast, and it follows your dark mode.
npx shadcn@latest mcp init --client claude// components.json
{
"registries": {
"@chartslibraryui": "https://chartslibraryui.com/r/{name}.json"
}
}Works with the shadcn MCP server in Claude Code, Cursor and VS Code. Free charts need no key. Prefer plain text? llms.txt
Gaps, half-finished months, negative refunds and forecasts mixed with actuals. Every chart handles them the same way, and none of them hides the problem.
Line chart, 10 points from Mar 25 to Dec 25. MRR from $896K to $1.3M (min $896K, max $1.3M). Use arrow keys to read values.
The line breaks and a note says how many values are missing. Nothing is interpolated.
Column chart of New MRR across 6 categories. New MRR is highest for Dec 25 ($45.4K) and lowest for Sep 25 ($41.7K). Use arrow keys to read values.
partialFrom fades December and labels it, so a half-finished month doesn't look like a collapse.
Donut chart of 2 parts totalling 600. New 70%, Expansion 30%.
A negative share can't be a slice. The chart names the rows instead of drawing a wrong picture.
Install with the shadcn CLI or copy it. It lands as one readable TSX file next to a small shared core.
Plain React and CSS variables. Change a colour, a font or the tooltip and keep everything else.
Line chart, 8 points from May 25 to Dec 25. MRR from $989K to $1.3M (min $989K, max $1.3M). Use arrow keys to read values.
Line chart, 8 points from May 25 to Dec 25. MRR from $989K to $1.3M (min $989K, max $1.3M). Use arrow keys to read values.
Every chart follows your theme class, and every palette is checked for colour-vision deficiency in both modes.
Revenue, plan to actual, USD
Waterfall from Plan $8.2M to Actual $8.5M through 5 changes. Volume +$640K (favorable); Price +$310K (favorable); Mix −$180K (unfavorable); FX −$95.0K (unfavorable); Churn −$420K (unfavorable).
26 charts are free forever. Pro adds 21 financial and analytical charts and dashboard blocks. No subscription, $79 at launch.
Everyday charts and the full core. Good enough to ship in a commercial product.
One developer. All 21 Pro charts and dashboard blocks, yours to keep.
Up to 10 developers at one company. Everything in Individual, for the whole team.