Skip to main content
An area chart shows trends with magnitude, drawing filled bands under the line. Anvil2 documents stacked area only, not overlapped. Use monochrome for four or fewer variables, and categorical for five or more. Area charts do not use the semantic palette.

Minimal option

An ECharts area is a line series with areaStyle set. An empty object is enough, because variant fills the band. Set stack in the option: stacking carries meaning rather than styling, and Anvil2 area charts are stacked.

Variant styling

variant applies the following treatment: Avoid adding fades, opacities, or separator strokes to reproduce this treatment, and avoid overlapped areas that rely on transparency instead of stacking.

Tooltips

Pass renderTooltip to add tooltip content. See Chart component. Area charts have no markers to hit, so the chart reports the whole category and points holds one entry per series.
Last modified on August 20, 2026