🌍 Public
Viewing a saved revision (read-only)
36c6f38a931244778caba929d5991c6b
Assignment 2_Task 3(scatter plot)
This scatter plot shows the relationship between penguin flipper length and body mass, with each point colored by species (Adelie, Gentoo, and other, rendered as red). The visualization uses D3 v5’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data from a CSV file fetched via `d3.csv`, and renders circles as SVG elements. The code calculates x and y positions from the raw numeric fields and applies a custom color function per species, with axes and labels styled via CSS and SVG text elements.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.