I can dig up my test cases if anyone is interested.
Sorry for resurrecting an old thread, but here is an easy solution: http://bl.ocks.org/1209499
--You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
I'd like to offer viewers of my d3-generated SVG the option to
download the SVG as a file so they can edit it themselves, but I'm not
sure how to go about it. The best solution I could come up with is
kind of dumb: post the content of the SVG to a server and have the
server package the content into a file and offer it back with the
appropriate headers, triggering a download dialog. It just doesn't
seem like this should be necessary, though, since the data is already
sitting there in the client. Is there a pure JS way to do this?
-ken-ichi