Using D3 to create visualizations is incredibly powerful, however I occasionally like to export these out so that I can put the final touch in Illustrator.

Just pass in the SVG element in which the visualization is being rendered and the function appends a preview image and a download link on the page.