Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
using the beautiful SVG library Raphaël in Node.js to generate svg-data
CoffeeScript JavaScript
tag: 0.1.4

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
src
.gitignore
LICENSE
README.md
node-raphael.js
package.json
wscript

README.md

node-raphael

using the beatiful SVG library Raphaël on node.js to generate svg-data.

Features

  • static svg generation with raphael

Installation

make sure you have node-waf installed (contained in nodejs-dev package).

npm install node-raphael

Motivation

NIH - not invented here ... srsly .. i want to generate some good looking charts without using javascript on client side (because this is lame for none-interactive images)

Usage

var raphael = require('node-raphael');
var svg = raphael.generate(width, height, function draw(paper) { … });

WARNING

jsdom just implements a DOM 1.0, which only covers SVG 1.0, but raphael uses SVG 1.1, so features like text may not work.

Example

SVG Server with Raphaël Logo:

TODO

  • More documentation
  • tests
Something went wrong with that request. Please try again.