area
Use like line when a filled band under the stroke helps show magnitude over an ordered x.
Do not use for discrete category ranking (bar), scatter clouds, or pie slices.
Optional layout: grouped | stacked | percent. Stacked/percent fill cumulative bands.
x same as line · y number · series optional; layout as bar
Rules. Fill under line(s). Same gap rule as line.
Example
chart
markvis: 2
type: area
title: Fill under trend
x: month
y: revenue
month,revenue
Jan,120
Feb,180
Mar,150| month | revenue |
|---|---|
| Jan | 120 |
| Feb | 180 |
| Mar | 150 |
When the block is wrong
The rows stay, with one line that names the error.
chart
markvis: 2
type: area
innerRadius: 0.5
title: Unknown extra field
x: month
y: revenue
month,revenue
Jan,120
Feb,180| month | revenue |
|---|---|
| Jan | 120 |
| Feb | 180 |
E_UNKNOWN_FIELD: undeclared fence field: innerRadius
Generated from packages/types/area/ and the type's row in SPEC.md.