Area Chart
Charts · AreaChart
Smooth stacked areas for volume over time, with a crosshair tooltip.
Props: labels, series ({name, tint, values}), stacked (default true), height, width, format(v), legend, label.
- Areas are the light tints, edges the
-inklines, so the stack reads in both themes. - Use stacked areas when the total matters; switch to LineChart when you compare series against each other.
- Labels thin out automatically past 12 points.
Visitors by channel
Stacked, per week
OrganicNewsletterPartners
Props
AreaChart
| Prop | Type | Notes |
|---|---|---|
labels | string[] | Required |
series | Series[] | Required |
stacked? | boolean | |
height? | number | |
width? | number | |
format? | (v: number) => string | |
legend? | boolean | |
label? | string | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |