Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dingoeatingfuzz/svg-chart-server

An express helper for hosting svg charts as images
https://github.com/dingoeatingfuzz/svg-chart-server

Last synced: 18 days ago
JSON representation

An express helper for hosting svg charts as images

Awesome Lists containing this project

README

        

### Chart Experiments

Server-side d3 rendering to pngs without a headless browser?

#### Setup OSX
```sh
$ brew install imagemagick --with-librsvg
$ brew install graphicsmagic
$ npm install
```

#### Setup Ubuntu
```sh
$ ¯\_(ツ)_/¯
$ npm install
```

#### Test it
```sh
$ node app.js
```

Navigate to

```
localhost:3000/mark
localhost:3000/mark.svg
localhost:3000/mark.png
```