ICE6 Q2 Scatter Plot for Penguin Dataset
✓ Published0🌍 Public
This scatter plot visualizes a penguin dataset from a CSV file, mapping flipper length to body mass for individual penguins. Each point is colored by species, using purple for Adelie, orange for Chinstrap, and crimson for Gentoo penguins, with the relationship displayed on a full-window SVG canvas. The example employs D3 v6 API functions including `d3.csv`, `d3.select`, `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to load data, scale axes, and render marks. It also includes axis labels and a title, with fixed point radius and species-based coloring via a switch function.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed