🌍 Public
Viewing a saved revision (read-only)
f4fa315e27874e44bcf3a878a6fe4aa2
Q1
This scatter plot visualizes the relationship between the mass and radius of 150 synthetic planets, with color encoding the planet type (Terrestrial, Gas Giant, Ice Giant, Dwarf). Built with D3 v7, it uses a reusable `ScatterPlot` function that employs `d3.scaleLinear` for axes and `d3.scaleOrdinal` with `d3.schemeTableau10` for coloring, while the data comes from a seeded random generator. Each dot includes a tooltip showing the planet's name, mass, radius, and type.
AI-generated description