Back to blocks
BlockDashboard / ApplicationFree

Spending by Category Chart React component

A personal finance spending breakdown: month total with budget left and change vs last month, a gapped donut with a center readout, ranked category bars with budget markers and over-budget flags, compare-with-last-month ghost bars, a table view, month stepping and a merchant drill-down per category.

About the Spending by Category Chart component

Spending by Category Chart answers the two questions people ask about their money: where did it go, and am I within budget? The donut shows the split at a glance, and the ranked bars right next to it give exact amounts, budget markers and clear over-budget flags.

Hovering links the donut and the list, clicking a category opens the merchants behind it, Compare overlays last month, and a table view gives the same numbers in plain rows for screen readers and anyone who prefers figures.

When to use it

Use it in personal finance, banking and expense apps, or anywhere a total splits into a handful of categories with budgets.

For trends over many months use a line or bar chart; for a single budget figure use a stat card.

Installation

Add the Spending by Category Chart component to your project with the shadcn CLI. It lands in components/spending-by-category-chart.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/spending-by-category-chart

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Dashboard / Application components

Money Transfer Form
Free
Card Wallet Panel
Free
Savings Goal Tracker
Free
Hiring Pipeline Board
Free
Campaign Performance Overview
Free
Payroll Run Summary
Free