Back to blocks
BlockDashboard / ApplicationFree

Usage Chart Block React component

A usage panel for metered plans: daily stacked bars by source with a daily budget line, a cumulative view with the plan limit and a dashed projection to cycle end, used / projected / overage figures, a status line that names the day you will pass your limit, hover breakdowns and legend toggles.

About the Usage Chart Block component

Usage Chart Block answers the questions people have about a metered plan: how much have I used, where is it coming from and will I go over? Daily bars are stacked by source, so you can see which endpoint, job or service drives the bill, with a line for the daily budget that keeps you within the limit.

Switch to Cumulative to see the running total against the plan limit, with a dashed line projecting where you will end the cycle at the current pace. The summary shows what has been used, what is projected and what the overage would cost, and a status line names the day you would pass the limit.

When to use it

Use it on billing and usage pages of API products, hosting and infrastructure dashboards, or any plan with quotas.

Keep each metric to four or five series and group the long tail as Other.

Installation

Add the Usage Chart Block component to your project with the shadcn CLI. It lands in components/usage-chart.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/usage-chart

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Dashboard / Application components

Onboarding Checklist Widget
Free
Quick Actions Grid
Free
Multi-step Form Block
Free
Team Members List Block
Free
Inbox / Message List Block
Free
Billing Summary Card
Free