Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. With Vega you can describe data visualizations in a JSON format, and generate interactive views using either HTML5 Canvas or SVG.
Use npm or yarn to install Vega for use in third-party libraries or applications.
npm install vega
or using yarn:
yarn add vega
If you would like to install the Vega command line utilities (
vg2svg), see the
Contributions, Development, and Support
Read about future plans in our roadmap.
This package builds the bundled Vega library files and the JSON schema. It also includes a high-level test suite. If performing local development:
yarn buildto build both browser and node.js bundles.
yarn testto run the test suite.