Skip to main content
Public

Share visualization

Loading preview…

Fork of D3 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

Fork of D3 Scatter Plot

0
Eedw.ext@gmail.com
Last edited Oct 4, 2025
Created on Oct 4, 2025
Forked from D3 Scatter Plot

This example presents a scatter plot of the classic Iris dataset, mapping sepal length against petal length for individual flowers. The visualization is a direct fork of a D3.js v3 example, adapted to use the modern D3 v6 API, and rendered as an SVG that fills the browser window. The code constructs a linear scale for both axes using `scaleLinear` and `extent`, draws the data points as circles with a fixed radius, and adds labeled axes via `axisLeft` and `axisBottom`. It also employs the `join` operator for efficient, declarative updating of the circle marks. The plot is fully responsive, sizing itself to the window's dimensions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed