monochrome for four or fewer variables, and categorical for five or more. Area charts do not use the semantic palette.
- Design rules: Area charts
- Shared API / tooltips / palettes: Chart component
Minimal option
An ECharts area is a line series withareaStyle 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
PassrenderTooltip to add hover 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.