Usage Chart
NewDaily usage as dithered audio bars that rise into place and leave a trail when you switch metrics, with this month on a usage meter
Installation
pnpm dlx shadcn@latest add @breeze/usage-chartUsage
import { UsageChart } from "@/components/blocks/usage-chart"export default function Page() { return <UsageChart />}About this block
A usage card for a dashboard, drawn with Audio Bars. Each day is one dithered bar that rises into place. Tabs switch between metrics, each with its total for the range and the change against the period before, and the bars move to the new numbers, leaving a slow trail of where they were under a peak cap that holds, then drops. A switch picks the last 7, 14 or 30 days. Hover, drag or use the arrow keys to read a day: a band follows the bar and a tooltip gives the date and the number. Underneath, the daily average, the busiest day and this month against the plan on a Usage Bar. Works in light and dark mode.
- React
- Tailwind CSS
- Motion
- Hugeicons
- Breeze Audio Bars
- Breeze Usage Bar
Features
- One dithered bar per day that rises into place
- Switch metrics and the bars move, leaving a trail and a falling peak cap
- Each metric's total for the range and its change against the period before
- 7, 14 and 30 day ranges
- Hover, drag or use the arrow keys to read a day, with a band and tooltip
- Daily average, busiest day and this month against the plan on a Usage Bar
- Metrics, numbers, formats, colours and limits kept in one METRICS array
- A data table for screen readers; respects reduced motion