Fork of Solar System
This animated visualization displays the relative sizes of countries based on an index score, with larger circles representing higher values. It uses D3.js transitions with `transition().duration()` and `easeLinear` to animate circle radii and positions, creating a dynamic comparison across seven nations. The data comes from a hardcoded array in the source code, which is adapted from Wikipedia data on gravitationally rounded Solar System objects, repurposed to showcase country rankings. The visualization renders using SVG circles and text elements within a black-themed container.
AI-generated descriptionA 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