Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Q1

Public visualization

Viewing a saved revision (read-only)

f4fa315e27874e44bcf3a878a6fe4aa2

Q1

0 stars0🌍 Public
RRuthvik Bairaboina
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from D3 Starter

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