Data

data is an array of row objects, not { "values": [...] }. Sparkline, mini-area, and spike may use a number array. Wide tables may use columns.

spec.json200 · valid

Open the playground to edit a spec with validate, repair, and export.

Rows

Each row is an object. Field names in encoding point at those keys. A number array is only for sparkline, mini-area, and spike.

Columns

Large tables may use { "columns": { "month": ["Jan"], "revenue": [120] } }. The encoding field names stay the same.