Category Breakdown Chart
- from @mebius
A spending breakdown card: the month's revenue and expenses with their change from last month in badges, a Manage balance button, and the expenses as a meter of thin round ticks split among the categories, each starting with a tall tick under its name and share and shaded by its parts. Hover, drag or the arrow keys pick a part: its ticks rise, the other categories fade and a tooltip gives its amount and share; a click or Enter pins the category. Animated with anime.js: the figures count up, the ticks rise from left to right, the names come in as their ticks rise, and new amounts move the tall ticks and names while the ticks change colour.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @mebius/charts-category-breakdown