scatter
Use for numeric x × numeric y with one mark per row — correlation and cloud shape.
Do not use for categorical x (bar / line) or binned distributions (hist).
x number · y number · series optional
Rules. One mark per row. Repeated observations are kept. Both axes are labeled with the field names.
Example
chart
markvis: 2
type: scatter
title: Height vs weight
x: height
y: weight
height,weight
160,55
175,70
182,80| height | weight |
|---|---|
| 160 | 55 |
| 175 | 70 |
| 182 | 80 |
When the block is wrong
The rows stay, with one line that names the error.
chart
markvis: 2
type: scatter
layout: grouped
title: Unknown extra field
x: height
y: weight
height,weight
160,55
175,70| height | weight |
|---|---|
| 160 | 55 |
| 175 | 70 |
E_UNKNOWN_FIELD: undeclared fence field: layout
Generated from packages/types/scatter/ and the type's row in SPEC.md.