Skip to main content
Public

Share visualization

Loading preview…

ICE-6: Creating a Scatter Plot with D3.js

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

ICE-6: Creating a Scatter Plot with D3.js

0 stars2Public
CChaitanya Galla
Last edited Mar 25, 2022
Created on Mar 3, 2022
Forked from HTML Starter

This example visualizes the Iris dataset as a scatter plot, mapping petal length and petal width to x and y positions, with circles colored by species (setosa, versicolor, and virginica). The D3.js code loads CSV data with `d3.csv`, parses numeric fields, and uses `scaleLinear` and `extent` to set scales. Axes are rendered with `axisLeft` and `axisBottom`, while `selectAll` and `join` bind data to SVG circles. The visualization fills the viewport and uses a fixed radius for all points.

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