sigilUI

Area Chart

A smooth area chart with gradient fill, Catmull-Rom curves, and multi-series support.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { AreaChart } from "@sigil-ui/components";

Usage

<AreaChart
  series={[
    { label: "Revenue", points: [...] },
    { label: "Expenses", points: [...], color: "var(--s-error)" },
  ]}
  curve="smooth"
  showGrid
/>

Props

PropTypeDefaultDescription
seriesAreaChartSeries[]—Data series to render
widthnumber500SVG width
heightnumber250SVG height
stackedbooleanfalseStack multiple series
showGridbooleantrueShow horizontal grid lines
curve"smooth" | "linear""smooth"Line interpolation method

Token integration

CSS VariablePurpose
--s-primaryDefault area and line color
--s-borderGrid lines
--s-text-mutedAxis labels
--s-font-monoLabel font family