Skip to main content
100%

Penguin Scatter Plot

✓ Published0🌍 Public
SSomu1433
Last edited Mar 12, 2023
Created on Mar 12, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes