🌍 Public
Viewing a saved revision (read-only)
c251904f59f0444d9aa94fb04a4448ca
Penguin Scatter Plot
This scatter plot visualizes the relationship between flipper length and body mass for three penguin species, with each point colored by species using an ordinal color scale. The visualization uses D3 v7’s `d3.csv` to load a remote penguin dataset, `d3.scaleLinear` for both axes, and `d3.axisBottom` and `d3.axisLeft` to render the axes. Circles are drawn as SVG elements with `d3.selectAll` and `.join`, while axis labels are added via SVG text elements. The code loads data from a GitHub Gist and renders the chart within an SVG container.
AI-generated descriptionA demonstration of how to start using D3 version 6.