AreaChart
stableFilled area chart for cumulative and stacked treasury data — liquidity buffers, stacked funding sources
import { AreaChart } from "@nodus/design-system/finance"Loading demo…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
datareq | Record<string, number | string>[] | — | Data rows |
xKeyreq | string | — | Key for x-axis labels |
yKeyreq | string | string[] | AreaSeries[] | — | Series key(s) to plot |
stacked | boolean | — | Stack areas additively |
showLegend | boolean | — | Show series legend |
datarequiredType
Record<string, number | string>[]Default —Data rows
xKeyrequiredType
stringDefault —Key for x-axis labels
yKeyrequiredType
string | string[] | AreaSeries[]Default —Series key(s) to plot
stackedType
booleanDefault —Stack areas additively
showLegendType
booleanDefault —Show series legend
MobileStacks / Scroll
Chart requires min 300px width for legible axis labels. Wrap in overflow-x-auto with min-w-[300px] on the chart container.
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?