Skip to content Skip to a section
VL Ways

Vega-Lite grammar

Declare encodings in JSON with Vega-Lite - reproducible charts that teach the grammar of graphics.

At a glance
Score intensity

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

Score profile

Each bar is a 0-100 atlas score for this topic, not a timeline.

764880627078
This form
This form
764880627078
Explore
Compare
15 min read

Last reviewed Sources & creditsMedia creditsMethodology

Open viz studio

Vega-Lite grammar

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.

This page gathers anatomy, fit, craft, failure modes and work / ads / school recipes for Vega-Lite grammar.

FormVega-Lite grammar
Since2016
Encodesunit specifications of…
Best forreproducible analysis…
Avoidyou only need one…
StudioWays

Profile

Clarity
76
Persuasion
48
Density
80
Craft cost
62
School fit
70
Work fit
78
764880627078

Seven chapters

Frequently asked questions

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.
Which tool?
Excel or Google Sheets or PowerPoint; export SVG/PDF.
How do I keep it accessible?
Do not rely on hue alone. Label directly and check greyscale.

Related

Studio → Which visual? Compare forms Make a visual from a file