Skip to main content
100%

Fork of Fork of Scatterplot for peng bird dataset

✓ Published0🌍 Public
CChih-Hsin Chen
Last edited Apr 30, 2024
Created on Apr 30, 2024

This scatter plot visualizes the Palmer Penguins dataset, encoding flipper length on the x-axis against body mass on the y-axis, with each point’s color indicating one of three penguin species. The code loads CSV data via `d3.csv`, uses `d3.scaleLinear` and `d3.extent` to set scales, and renders the points as SVG circles. It also draws axes with `d3.axisLeft` and `d3.axisBottom`, while a switch function assigns distinct colors per species, and axis labels are added via SVG text elements.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes