https://github.com/pjsier/vega-templates
Data visualization templates in Vega
https://github.com/pjsier/vega-templates
Last synced: over 1 year ago
JSON representation
Data visualization templates in Vega
- Host: GitHub
- URL: https://github.com/pjsier/vega-templates
- Owner: pjsier
- License: mit
- Created: 2017-04-24T01:58:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T01:58:38.000Z (about 9 years ago)
- Last Synced: 2025-01-03T23:29:21.457Z (over 1 year ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Templates for Vega Visualizations
Templates in [Vega](https://vega.github.io/) (3.0 schema) for generating different data visualizations.
## Setup
* For dependencies on generating Vega png and svg files, (on Mac), run `brew install pixman cairo`
* Then run `npm install`
## Run Server
Run a server locally with `npm start`, and navigate to `localhost:3000` to see visualizations
through the `vega-embed` library. Use the dropdown to select which visualization
to display from a list populated by all files in the `viz` directory.
## Generate Images
[Pulled from Vega docs](https://vega.github.io/vega/usage/#examples)
* PNG: `./node_modules/.bin/vg2png {JSON_FILE} {PNG_OUTPUT}`
* SVG: `./node_modules/.bin/vg2svg {JSON_FILE} {SVG_OUTPUT}`