title: Converting d3.js SVG code to a standalone program — Example?
body: <p>Either with a headless browser, google filesytem API, or some other way.</p>
  
  <p>This question says you can, but not how.
  <a href="https://stackoverflow.com/questions/8235989/converting-d3-js-svg-code-to-a-standalone-program-any-suggestions">Converting d3.js SVG code to a standalone program -- any suggestions?</a>
  google groups has more hints, but no examples.</p>
  
  <p>I've spent a bunch of time playing with the node-canvas example, as well as the phantomJS svg example. I can't figure out how to make them play together. Apparently in Linux, the x-windows Javascript rendering engine isn't very good anyway.</p>
  
  <p>My API reading list of JavaScript, d3.js, SVG, CSS, and other HTML stuff is already mountainous - all I want to do is save a .svg image that I generate with d3.js. </p>
  
  <p>Help, please.</p>