Vega-Lite is a high-level grammar for statistical and interactive graphics. It compiles concise JSON specs into full Vega specifications for analysis and presentation.
Overview
Vega-Lite lets authors describe visualizations as mappings from data fields to channels such as position, color, and size. The compiler fills in axes, legends, scales, and related components using rule-based defaults that users can override.
Specifications stay short for common charts while remaining expressive enough for layered views, faceting, selections, aggregations, binning, filtering, and stacking. Because output is Vega, teams can start with Vega-Lite and drop to lower-level Vega when advanced control is needed.
The project is developed by the University of Washington Interactive Data Lab alumni and contributors. Documentation, examples, an online Vega Editor, and ecosystem integrations are available for Vega-Lite. Compared with ggplot or Tableau-style workflows, Vega-Lite uses declarative JSON comparable to those high-level grammars.
Vega-Lite is used in teaching, journalism, research, and application development where portable chart specifications matter. Community contributions extend chart types, transforms, and tool support beyond the core compiler.
Key features
- Declarative JSON chart specifications
- Compiles to Vega specifications
- Default axes, legends, and scales
- Data transforms and aggregations
- Layered and multi-view compositions
- Interactive selections
- Online editor support
- Higher-level than raw Vega
Use cases
- Statistical graphics in web apps
- Exploratory data analysis specs
- Teaching visualization grammar
- Portable chart definitions in JSON
- Stepping stone before custom Vega