Fork of ICE6 - Q2: Scatter Plot for Penguin Dataset
✓ Published0🌍 Public
Mmanishcheruku
Last edited Mar 10, 2023
Created on Mar 10, 2023
Forked from ICE6 - Q2: Scatter Plot for Penguin Dataset
This example displays a scatter plot of the Palmer Penguins dataset, showing flipper length on the x-axis and body mass on the y-axis, with each point colored by species. The code uses D3 v6’s `csv`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to load data, map scales, and render axes into SVG circles. It converts penguin attributes to numeric values via a parse row function and maps species names to fixed colors. Data is fetched from a GitHub gist URL.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed