vega/vega

Name: vega

Owner: Vega

Description: A visualization grammar.

Created: 2013-02-03 18:36:30.0

Updated: 2018-01-18 21:56:26.0

Pushed: 2018-01-18 05:53:12.0

Homepage: http://vega.github.io/vega

Size: 48388

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Vega: A Visualization Grammar

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.

For documentation, tutorials, and examples, see the Vega website. For a description of changes between Vega 2 and Vega 3, please refer to the Vega 3 Porting Guide. Additional API documentation for Vega 3 can be found in the associated modules listed below.

Basic Setup

For a basic setup allowing you to build Vega and run examples:

This repo (vega) includes web-based demos within the test folder. To run these, launch a local webserver in the top-level directory for the repo (e.g., python -m SimpleHTTPServer 8000 for Python 2, python -m http.server 8000 for Python 3) and then point your browser to the right place (e.g., http://localhost:8000/test/).

This repo also includes the website and documentation in the docs folder. To launch it, run bundle install and bundle exec jekyll serve in the docs folder. The last command launches a local webserver. Now, you can open http://127.0.0.1:4000/vega/ to see the website.

Development Setup

For a more advanced development setup in which you will be working on multiple modules simultaneously, first clone the relevant Vega 3 modules. Here is a list of all Vega 3 repositories:

Though not strictly required, we recommend using npm link to connect each local copy of a repo with its 'vega-' dependencies. That way, any edits you make in one repo will be immediately reflected within dependent repos, accelerating testing.

For example, to link vega-dataflow for use by other repos, do the following:

gister a link to vega-dataflow
ega-dataflow; npm link
date vega-runtime to use the linked version of vega-dataflow
./vega-runtime; npm link vega-dataflow
date vega to use the linked version of vega-dataflow
./vega; npm link vega-dataflow

Once links have been setup, you can use npm install as usual to gather all remaining dependencies.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.