Skip to main content
100%

ICE6 : Scatter Plot

✓ Published0🌍 Public
99176371431
Last edited Mar 9, 2023
Created on Mar 9, 2023
Forked from React Starter

This scatter plot visualizes penguin measurements from a CSV dataset, plotting flipper length against body mass for individual penguins. Each point is colored by species—orange for Adelie, red for Gentoo, and blue for the remaining species—using D3’s `scaleLinear` and `extent` functions to map data to screen coordinates. The SVG circles are positioned with `cx` and `cy` attributes, and the axes are rendered via `axisLeft` and `axisBottom` from D3 v5. The code uses D3’s `csv` loader to fetch the data and a `join` operation to bind it to circle elements.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes