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.
pnpm dlx shadcn@latest add "https://www.mebius.design/r/charts-category-breakdown.json"