Voyager is a visualization browser for data analysis, building on top of Vega-lite. Try our online demo. Also, be sure to check out related projects.
This project is an alpha software. We are working on improving its code and documentation.
If you are using Voyager for your project(s), please let us know what are you using it for by emailing us at Vega-lite [at] cs.washington.edu. Feedbacks are also welcomed. If you find a bug or have a feature request, please take a look a the issue tracker and create an issue if there is no existing issue.
First clone this repository by running
git clone https://github.com/uwdata/voyager
Make sure you have node.js. (We recommend using homebrew and simply run brew install node
.)
First, install gulp + bower globally by running
npm install -g bower
npm install -g gulp
Then, cd
into your local clone of the repository, and install all the npm, bower dependencies:
cd voyager
npm install
bower install
Now you should have all dependencies and should be ready to work.
You can run gulp serve
, which serves the site as well as running tests in the background.
If you edit any file, our gulp task runner should automatically refresh the browser and re-run tests.
We try to follow Google's Angular Best Practice for Angular App Structure and use generator-gulp-angular to setup the project.
All source code are under src/
src/app/
contains our main classessrc/components
contains our other componentssrc/assets/images/
contains relevant imagessrc/data/
contains all data that we use in the applicationsrc/vendor
contains
@kanitw have create gulp/gen.js
for help generating angular components.
For example, you can run gulp gen -d directiveName
and this would create all relevant files including the javascript file, the template file, the stylesheet file and the test spec.
We use jshint as our linter for coding in the project.
We use sass as it is a better syntax for css.
This project depends on Datalib for data processing, Vega-lite as a formal model for visualization, and Vega-lite-ui, which contains shared components between Polestar and Voyager.
If you plan to make changes to these dependencies and observe the changes without publishing / copying compiled libraries all the time, use bower link
.
In each of your dependency repository, run
cd path/to/dependency-repo
bower link
Then go to your this project's directory and run
bower link datalib
bower link vega-lite
bower link vega-lite-ui
Now all the changes you make in each repo will be reflected in your Vega-lite automatically.
Since bower uses the compiled main file, make sure that each repos is compiled everytime you run gulp serve
.
Otherwise, you will get errors for missing libraries.
gh-pages
branch is for releasing a stable version.
gh-pages
should only contain the dist folder.
Use publish.sh
to:
- publish the current version to npm
- deploy the current branch to gh-pages and
- create a release tag for github and bower.
Voyager's development is led by Kanit Wongsuphasawat, Dominik Moritz, and Jeffrey Heer at the University of Washington Interactive Data Lab, in collaboration with UW eScience Institute and Tableau Research
We used generator-gulp-angular for bootstraping our project.