I also use D3.js to create static graphs and calculated waveforms. The source code for static graphs is here. I open each d3 html file on my own machine and save the resulting svg image to the i/ folder.
A handy Chrome-specific bookmarklet is SVG Crowbar. It extracts the svg images from a web page and presents it in a form that can be saved.