The Vega editor is a web application for authoring and testing Vega visualizations. It includes a number of example specifications that showcase both the visual encodings and interaction techniques supported by Vega.
To run the editor locally, you must first install the dependencies and then launch a local web server. We assume you have npm installed.
- Install the dependencies:
$ npm install
- Start the server:
$ npm start
The editor is useful for testing if you are involved in Vega and Vega-Lite development. To use Vega, Vega-Lite, Vega Datasets, or Vega-Embed from another directory on your computer, link it into vendor. For this, run npm link
in the directory of the library that you want to link. Then, in this directory run npm link <name of library>
, e.g. npm link vega
.
For example, to link Vega, run
cd VEGA_DIR
npm link
cd VEGA_EDITOR_DIR
npm link vega
- Install the latest versions of vega, vega-lite, and vega-datasets
npm run vendor
npm run generate-example-images
(requires https://www.gnu.org/software/parallel/)npm run build