block by nbremer f4138083889ba159ae8385b4a54da8fb

Data based gradients - Simple - Solar system

Full Screen

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

index.html