Penguin Scatter Plot
✓ Published0🌍 Public
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.
MIT Licensed