SVG are vector based graphics that are great if you want to generate high resolution images; especially for print. You can generate svg graphics with D3js for graphs. When you are happy with the result, you can use svg crowbar to download the image (and convert it to eps / png etc….). I had a simple html file running raphaeljs with graphaeljs and it generated a svg response.After having the html file, simply run “python3 -m http.server 8000” to see the result on localhost. (see below).
Once you are happy. Then run crowbar in your browser (http://nytimes.github.io/svg-crowbar/ ). It will then download the svg automatically, which you can convert to other image formats vs inkscape or apache batik. (brew install batik; then run batik)
Hope this helps someone.
For generating and exporting the svg graphs to png versions. Use svg2png via brew (not npm version) brew install svg2png. Then sudo svg2png raphael-ico.svg rap.png to convert.
To have a large printable version: sudo svg2png -s3 raphael-ico.svg rap3.png.
-w300 -h300 argvs will yield width and height respectively.