Server side SVG generation using D3.js

Dynamic graphics generation for displaying charts in a web browser from data passed from the server is a nifty trick. Sometimes however it may be desirable to generate SVG content on the server side, e.g. to lessen the demand on the client or to store the chart on the server's file system.