# Application Billing: Spend Trend Chart

A spend trend panel with three stat columns above a six month stacked bar chart splitting invoices into plan, seats, and usage.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/spend-trend-chart
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Billing](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/spend-trend-chart.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-billing-spend-trend-chart
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: recharts
- shadcn/ui components: chart
- Installs to: `@/components/blocks/application-pro/billing/spend-trend-chart`

## About this block

Spend Trend Chart is the six month billing history for the Acme
workspace, with three stat columns up top (last invoice $223.00,
six month average $196.50, change vs Jan +31%) sitting over a
stacked bar chart. Each bar is one invoice split into base plan,
seats, and usage, so the shape of the growth is legible at a
glance. The footer names the driver in words: usage is the
fastest growing line, up from $14 in January to $43 in June,
seats added two in March and two in May, and the base plan has
not moved.

The chart is built on ui/chart with recharts, a typed
ChartConfig mapping each series to a chart color and the data as
a plain array of monthly rows. Swapping in your own invoice
series is all it takes to redraw the bars, tooltip, and legend.

## When to use

Reach for this block on the billing overview or a finance
reporting page, wired to your invoice aggregation endpoint.
Feed it monthly totals already split by line item, and update
the stat row and footer summary from the same series.

A natural flow around it on an Application Pro page:

**Before**

- [Invoice history table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)

**After**

- [Cost allocation panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)
- [Usage reports](https://www.shadcn-ui-blocks.com/blocks/application-pro/reports)

## What you can display

One strong use is invoice spend split by line item. Other trend
surfaces:

- **Team spend.** Stack the bars by team instead of line item
  to show where the growth is coming from.
- **Usage over time.** Chart metered units (API calls, storage)
  rather than dollars, same stacked pattern.
- **Forecast band.** Add a lighter projected bar for the current
  month next to the invoiced history.

> Tip: pair the chart with a one line driver summary; the bars
> show the trend but the sentence tells finance why it moved.

## More in Application Billing

- [Add-ons Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/addons-panel)
- [Billing Contacts Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/billing-contacts-card)
- [Billing Cycle Switch](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/billing-cycle-switch)
- [Cancel Flow Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/cancel-flow-blueprint)
- [Cost Allocation Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/cost-allocation-panel)
- [Coupon Redemption Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/coupon-redemption-card)
- [Credits Balance Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/credits-balance-card)
- [Current Plan Usage](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/current-plan-usage)
- [Dunning Banner](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/dunning-banner)
- [Invoice Detail Page](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/invoice-detail-page)
- [Invoice History Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/invoice-history-table)
- [Pause Subscription Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/pause-subscription-panel)
- [Payment History Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/payment-history-table)
- [Payment Method Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/payment-method-panel)
- [Plan Change History](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/plan-change-history)
- [Plan Comparison Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/plan-comparison-table)
- [Proration Preview Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/proration-preview-card)
- [Receipt Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/receipt-card)
- [Refund Status Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/refund-status-card)
- [Seat Management Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/seat-management-panel)
- [Spending Limit Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/spending-limit-card)
- [Tax and Invoice Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/tax-and-invoice-settings)
- [Trial Status Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/trial-status-card)
- [Upgrade Comparison Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/upgrade-comparison-card)
- [Usage Alerts Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/usage-alerts-panel)
- [Usage Breakdown Bill](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing/usage-breakdown-bill)
