Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE6 - Q2: Scatter Plot for Penguin Dataset

Public visualization

Fork of ICE6 - Q2: Scatter Plot for Penguin Dataset

0 stars0🌍 Public
Mmanishcheruku
Last edited Mar 10, 2023
Created on Mar 10, 2023

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 description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed