Skip to content
Charts

Area chart

Filled trend. Gradient, hatch, stripes, dither, glow — the drawing, not a palette.

Props

PropertyTypeDefaultDescription
dataChartDatum[]Rows to draw. Each object is a point or category.
dataKeystring"value"Numeric field on each row.
configChartConfigMap of dataKey → { label?, color? }. Colors fall back to --chart-1.
classNamestringChart container. Default height is 220px; spark looks better around 88px.
labelKeystring"date"X-axis field. Usually an ISO date.
variant"gradient" | "linear" | "natural" | "step" | "dots" | "spark" | "dither" | "glow" | "hatched" | "bars" | "solid" | "stacked" | "stream" | "band" | "ridge" | "riso" | "screentone" | "grain""gradient"How the fill and curve are drawn. hatched and bars are SVG textures. Not a color theme.
dataKeysstring[][dataKey]Series to compose. Pass two or more for the stacked and stream variants; ignored by the others.
emphasizeLastbooleanfalseTerminal dot plus a value pill on the final point. Drawn on its own layer, so it composes with any variant.
previousChartDatum[]Previous-period rows, drawn dashed underneath and aligned by index rather than by date. Adds a Previous row to the tooltip.
annotationsAnnotation[]{ at, label, kind? } per marker, where at matches a labelKey value. kind is "deploy" | "release" | "incident" | "note" and only sets the colour.
brushbooleanfalseDrag-to-zoom strip under the chart.
scale"linear" | "log" | "symlog""linear"Y-axis scale. log is pinned to 1 because it cannot represent zero. symlog uses a custom d3 scale and remains defined for negative values and zero.
gaps"bridge" | "break""bridge"How a null is drawn: joined across, or left open. Neither coerces the missing point to zero, which would draw a cliff that reads as a traffic collapse.