A simple node server that renders vega specs to SVG or PNG.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Dockerfile
LICENSE
README.md
package.json
server.js

README.md

Vega server

A simple node server that renders vega specs to SVG or PNG.

Install

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

Run

npm run start

Use

  • add some data
  • run curl -v -X POST -d @./test.json 'http://localhost:8888/?format=svg&header=true' --header "Content-Type: application/json"