Skip to content Skip to a section
Vega-Lite grammar

Craft

Declare encodings in JSON with Vega-Lite - reproducible charts that teach the grammar of graphics. Rules. reproducible analysis figures, teaching encodings,…

At a glance
Score intensity

Darker cells mean a higher score for this topic on that metric.

Last reviewed Sources & creditsMedia creditsMethodology

Quick answers

When should I pick Vega-Lite grammar?

When the story is: reproducible analysis figures, teaching encodings, notebooks.

When should I avoid Vega-Lite grammar?

Skip it in cases like: you only need one disposable bar for a meeting invite.

Who invented or popularised it?

Vega-Lite from the University of Washington Interactive Data Lab

What does it encode?

unit specifications of mark + encoding channels

Is it OK in ads?

Yes if one claim is visible at a glance in Meta, Google and retail print; otherwise link to a full figure.

Will a teacher accept it?

Yes for lab reports and poster boards if axes, units and a source line are present.

Start with this section - Craft

Vega-Lite grammar encodes values as unit specifications of mark + encoding channels. Vega-Lite from the University of Washington Interactive Data Lab.

In reports, ads and assignments it fits reproducible analysis figures, teaching encodings, notebooks. Skip it when you only need one disposable bar for a meeting invite.

Rules

Palette

Type

Vega-Lite grammar: honour unit specifications of mark + encoding channels, and switch when you only need one disposable bar for a meeting invite.

← When to use Vega-Lite grammar Mistakes →