Skip to content
Charts55Components12Visuals14ASCII45
GitHubGet startedGet started
  • All charts
  • Getting started

Trends3

  • Area
  • Line
  • Combo

Comparison4

  • Bar
  • Horizontal bar
  • Slope
  • RangeNew

Part of a whole4

  • Radial
  • Treemap
  • Funnel
  • Sankey

KPIs3

  • Stat cards
  • Progress
  • Activity ring

Patterns5

  • Heatmap
  • Cohort retentionNew
  • Scatter
  • Radar
  • Box plotNew

Cool23New

  • Chord loom
  • Rank ribbons
  • Event helix
  • Contour islands
  • Parallel ribbons
  • Sunburst terraces
  • Cluster constellation
  • Ternary prism
  • Wind rose
  • Marimekko blocks
  • Intersection towers
  • Horizon folds
  • Circle archipelago
  • Helix ribbons
  • Voxel cloud
  • Arc bridges
  • Terrain
  • Hex city
  • Voxel waffle
  • Skyline
  • Block city
  • Ridgeline
  • Spiral year

Finance13New

  • Candlestick
  • Indicators
  • Price
  • Depth
  • Order book
  • Portfolio
  • Watchlist
  • Market map
  • Volume profile
  • Monthly returns
  • Earnings
  • Yield curve
  • Options payoff

Customize10

  • Colors
  • Surfaces
  • Backgrounds
  • 3DNew
  • Axes
  • LegendsNew
  • Hover
  • Numbers
  • Loading
  • Empty

Features5New

  • Sync hover
  • Pin
  • Compare
  • Targets & forecasts
  • Performance

Reference2

  • API reference
  • Motion & accessibility
API reference/Chart families

Stacked area

Sum and percent stacks with original values in every readout.

  • ChartPlot stack
  • Area
  • Line

Use ChartPlot stack with the same Area and Lineprimitives. Descriptor order defines the layers from bottom to top. Stacked series must share a unit and curve. The scale includes zero and stays stable through legend toggles; data updates animate both boundaries and scale together.

Visible contributions share cumulative boundaries, inspection and one interruptible visibility transition. Tooltip values remain the original contributions; the total is calculated from visible series. A missing visible contribution leaves a gap across the stack and marks the total incomplete. Hide that series to inspect the remaining known total. The default sum mode stacks positive values above zero and negative values below it. stack="percent" normalizes visible non-negative contributions to a 0–100% scale without changing raw tooltip values. Mismatched curves produce a specific error.

TypeScript

<ChartPlot stack height={300} tooltip={<Tooltip />}>
  <Grid pattern="dots" />
  <Area series="direct" />
  <Area series="organic" />
  <Line series="direct" />
  <Line series="organic" />
  <XAxis /><YAxis showTicks={false} />
</ChartPlot>
<Legend interactive />
PreviousVertical barsNextCombo charts