Visualization grammar: describe interactive charts in JSON and render them to Canvas or SVG
open sourceBSD-3-Clausefree
Vega is a visualization grammar from the University of Washington Interactive Data Lab: a declarative JSON format for creating, saving and sharing interactive visualization designs, rendered with HTML5 Canvas or SVG. It's the lower-level grammar under Vega-Lite, with an online editor, tutorials and examples.
Problems it solves
- I want to describe interactive charts as JSON so they can be saved and shared
- I need a low-level visualization grammar for custom interactive charts in the browser
- I want charts my backend can generate as a spec and the browser can render
Features
- Declarative JSON specifications for interactive visualizations
- Renders to HTML5 Canvas or SVG
- An online editor for trying specifications
- Docs, tutorials and examples, including Observable notebooks
Alternatives
The same job
These do what Vega does.
- Vega-Lite A high-level grammar of interactive graphics
- G2 AntV's grammar-of-graphics JavaScript library for building charts and dashboards on Canvas, SVG or WebGL
- D3 The JavaScript library for bespoke data visualization
- Apache ECharts Open source JavaScript library for interactive charts and visualization