Skip to main content
100%

Fork of Solar System

✓ Published0🌍 Public
IIan Wright
Last edited Sep 8, 2024
Created on Sep 6, 2024
Forked from Solar System

The visualization displays a solar system with planets' relative sizes to scale, arranging them along a horizontal line with labels. Each celestial body renders as an SVG circle with a radial gradient, transitioning from a small point to its final size on load. The code uses d3’s `select`, `transition`, and `easeLinear` from the D3 library to animate circles and text smoothly. Data includes the Sun and planets, with distances derived from Wikipedia’s list of gravitationally rounded objects. The grayscale background and white text labels highlight the size comparison without distance accuracy.

AI-generated description

A visualization of the solar system. Relative sizes to scale, distances not to scale.

Data from Wikipedia: List of gravitationally rounded objects of the Solar System.

Challenge

  • Option A: Use this template to visualize the relative size of various numbers.
  • Option B: Add SVG Gradients to make the planets look more planet-like
MIT Licensed

Similar vizzes