Dune Charts

Area chart

Trends and stacked volumes with crest-to-depth fills.

Use area charts for continuous series over a category or time axis. Stack series with a shared stackId. Fill modes: dither or bands.

AreaSingle-stack melange + water.

Examples

Stacked

Share stackId on each <DuneAreaChart.Area />.

Stacked areaAll series share one stack.

Solid bands

Use fill="bands" for stepped ribbons without Bayer grain.

Bands fillSolid crest-to-depth ribbons.

Loading

Set loading on the root to show a pixel skeleton until data is ready.

Loading…

Parts

PartRole
DuneAreaChartRoot: data, config, fill, pixel, loading, chartProps
DuneAreaChart.GridCartesian grid
DuneAreaChart.XAxisCategory / index axis (dataKey required for categories)
DuneAreaChart.YAxisValue axis
DuneAreaChart.TooltipHover tooltip
DuneAreaChart.LegendSeries legend
DuneAreaChart.AreaOne series (dataKey, optional stackId, type)

Props

Root

PropTypeDefaultNotes
dataRecord<string, unknown>[]requiredRow objects
configRecord<string, DuneSeriesConfig>-Labels and colors
fill"bands" | "dither""bands"Pixel fill mode
pixelnumber2Cell size in CSS px
loadingbooleanfalsePixel skeleton
emptyMessagestring-Empty-state copy
chartPropsobject-Extra Recharts AreaChart props
classNamestring-Wrapper class

Area

PropTypeNotes
dataKeystringSeries field on each row
stackIdstringShared id stacks series
typeRecharts curve typeFor example monotone
namestringOverrides legend name
isAnimationActivebooleanSeries animation

Tips

  • Prefer dither for marketing UI. Prefer bands for dense dashboards.
  • Keep pixel at 2 unless you want a stronger pixel-art look.
  • Put every Area as a direct child of the root. See Composition.

On this page