d3-downloadable
Make SVG downloadable.
Install
$ npm install d3-downloadableUsage
import * as d3 from 'd3'
import {downloadable} from 'd3-downloadable'
d3.select('svg#chart')
.call(downloadable())Example
http://likr.github.io/d3-downloadable
License
MIT