bloxa

Area Chart

FREE

Gradient, solid or unfilled areas; stackable.

Installation

Terminal
npx @bloxa/cli add area-chart
# or: npx shadcn@latest add @bloxa/area-chart

Packages installed automatically: motion

Examples

Stacked area

Single series, gradient

API reference

Every component also accepts the props of the element it renders.

AreaChart

PropTypeDefaultDescription
dataobject[]—Rows.
indexstring—Key for x-axis labels.
categoriesstring[]—Numeric series keys to draw.
labelsRecord<string, string>—Display names for series.
colorsstring[]—Series colors; the first is the theme accent.
valueFormatter(value) => string—Value format; defaults to localized numbers.
heightnumber260Height in px; width follows the container.
showLegend / showGrid / showXAxis / showYAxis / showTooltipbooleantrueToggle parts.
stackedbooleanfalseStack.
fill"gradient" | "solid" | "none""gradient"Fill.
curve"smooth" | "linear""smooth"Curve.