Name: vegaserver
Owner: UW Interactive Data Lab
Description: A simple node server that renders vega specs to SVG or PNG.
Created: 2015-01-30 06:34:02.0
Updated: 2017-12-21 12:22:25.0
Pushed: 2015-03-06 22:13:20.0
Homepage: null
Size: 155
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A simple node server that renders vega specs to SVG or PNG.
You may have to export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
if you see an error like Package xcb-shm was not found in the pkg-config search path.
.
If using the docker container:
# Build the image
cd vegaserver
sudo docker build -t uwdata/vegaserver .
# Run, serving on port 80
sudo docker run -d -p 80:8888 uwdata/vegaserver
npm run start
curl -v -X POST -d @./test.json 'http://localhost:8888/?format=svg&header=true' --header "Content-Type: application/json"