A simple example of creating a radial SVG gradient used in my blog on Data-based and unique gradients for visualizations with d3.js
Other examples from this Astronomy-themed blog can be found here
Built with blockbuilder.org
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js