After playing with interactive data visualization using D3.js and React, I wanted to have a "Download" function so that I can easily save the visualization as an image rather than taking a screenshot of a browser window: Practicing D3 Interactive Data Visualization with Fitbit Activity/Sleep Log How Much CO2 Emissions Have Your Flights Made? In short, it can be achieved by writing a JavaScript sni