Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question3

Public visualization

Activity6_Question3

0 stars0🌍 Public
Ssaishruthik2361@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

This scatter plot visualizes the relationship between flipper length and body mass for three penguin species (Adelie, Chinstrap, and Gentoo), using color-coded circles to distinguish species. The code loads a CSV from a GitHub repository via `d3.csv`, converts the numeric columns, and renders an SVG chart with `d3.scaleLinear` for both axes, `d3.axisBottom`, `d3.axisLeft`, and a `d3.scaleOrdinal` with `d3.schemeSet1` for colors. A manual legend built with SVG rectangles and text labels appears in the top-right corner.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed