Skip to content

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 vs weight scatter chart. Height vs weight. x=height. y=weight. 3 rows. Height vs weightHeight vs weight 50 60 70 80 90 150150 160160 170170 180180 190190 weight height
Height vs weight
heightweight
16055
17570
18280

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
heightweight
16055
17570

E_UNKNOWN_FIELD: undeclared fence field: layout

Generated from packages/types/scatter/ and the type's row in SPEC.md.

0.0.13 lives under legacy/