talira

Vega-Lite

A high-level grammar of interactive graphics

open sourceBSD-3-Clausefree

Vega-Lite is a declarative JSON grammar for interactive charts. A specification maps data fields to the encodings of marks such as points, bars and lines, and the compiler fills in axes, legends and scales with sensible defaults that can be overridden. It supports data transformations (aggregation, binning, filtering, sorting), stacking and faceting, layered and multi-view compositions, and interactive selections. Specs compile to the lower-level Vega grammar and render in the browser with vega-embed; Vega-Altair writes Vega-Lite from Python, and the online Vega Editor authors and previews specs.

Problems it solves

  • describe a chart as JSON and have it rendered with axes and legends automatically
  • build interactive linked charts with brushing and filtering in the browser
  • let an LLM or backend generate chart specs as data rather than code
  • make faceted small-multiple charts from a dataset quickly

Features

  • declarative JSON chart specifications
  • automatic axes, legends and scales
  • aggregation, binning, filtering and sorting transforms
  • stacking and faceting
  • layered and multi-view composition
  • interactive selections
  • compiles to Vega
  • Python API through Vega-Altair

Alternatives

The same job

These do what Vega-Lite does.

  1. Apache ECharts Open source JavaScript library for interactive charts and visualization

Compare Vega-Lite with the top 3