Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React Expanded Area Chart

Normalized 100% stacked area chart for showing percentage distribution

Sometimes you care about proportions, not raw numbers. This React area chart normalizes everything to 100%, so you can see how each category's share changes over time—even when totals fluctuate wildly. The magic is stackOffset="expand" in Recharts, which handles all the percentage math for you. This chart shows desktop, mobile, and other traffic as slices of the whole, making it obvious when mobile starts eating into desktop's share. Great for market share dashboards, budget allocation views, or any Next.js app where you need to track how the pie gets divided over time.

React Expanded Area Chart preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.