A simple example of using d3 to easily create a unique (radial) gradient for each datapoint/planet from my blog on creating Data-based and unique gradients for visualizations with d3.js. Each planet has a defined color and by using a radial gradient we can make this look like a 3D sphere.
Other examples from this Astronomy-themed blog can be found here
Built with blockbuilder.org
forked from nbremer's block: Data based gradients - Simple - Solar system
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js