The easiest way to export a d3 visualization is to use svg-crowbar bookmarklet from the New York Times. This will save the d3 canvas to an svg and download it (if there are multiple options on the screen you can click which one you want to download).