An open API service indexing awesome lists of open source software.

https://github.com/uwdata/vegaserver

A simple node server that renders vega specs to SVG or PNG.
https://github.com/uwdata/vegaserver

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://docs.docker.com/) 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"`