Skip to main content
Public

Share visualization

Loading preview…

Assignment 2_Task 3(scatter plot)

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Assignment 2_Task 3(scatter plot)

0
KKeerthiAnnem
Last edited Jul 21, 2023
Created on Jul 17, 2023

This scatter plot shows the relationship between penguin flipper length and body mass, with each point colored by species (Adelie, Gentoo, and other, rendered as red). The visualization uses D3 v5’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data from a CSV file fetched via `d3.csv`, and renders circles as SVG elements. The code calculates x and y positions from the raw numeric fields and applies a custom color function per species, with axes and labels styled via CSS and SVG text elements.

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