Fork of Penguin Data
✓ Published0🌍 Public
This visualization displays a scatter plot of penguin measurements, mapping flipper length on the x-axis against body mass on the y-axis. Each point is colored by species (Adelie, Gentoo, and Chinstrap) using a color switch function. The code loads data from a CSV file via `d3.csv`, then uses `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to render the axes and circles. The SVG is appended to the body, with labels for the axes and title, using D3 v5 within a React framework.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed