Tool to be used for generating SVG and PNG plots using PlottableJS.
- Install NodeJS
- Install global dependencies
npm install bower phantomjs -g
- Install node modules
npm install
- Install library dependencies
bower install
Simple
node plottable-node.js example.js
Configured
node plottable-node.js -h 500 -w 500 -o plot.svg example.js
Data split
node plottable-node.js -h 500 -w 500 -o plot.svg -d data.js config.js
We do not officially support PNG conversion, but we provide a neat tool for executing the conversion (MAC only)
- One file conversion
bash svgToPng.sh file.svg
->file.svg.png
Usage:
$0 [options] configFile
Options:
-d, --data JavaScript data file
-o, --output name of the output SVG file (defaults to output.svg)
-h, --height width of the SVG in pixels
-w, --width height of the SVG in pixels
--version show version info and exit
--help print usage information
For feature requests please open an issue. Pull requests welcome.
MIT