Skip to main content
Public

Share visualization

Loading preview…

d3 scatterplot

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

d3 scatterplot

2
GGeorgi Dimitrov
Last edited Jul 2, 2022
Created on Jul 1, 2022
Forked from d3 selections

This visualization displays the Iris dataset, plotting petal length against petal width as a scatterplot of circles rendered in SVG using D3 v6. It loads CSV data via `d3.csv`, maps quantitative values using `scaleLinear` with `extent`, and sets circle positions through `attr('cx')` and `attr('cy')`. Axes are added using `axisLeft` and `axisBottom`, with margins applied to position the plot within the full window dimensions. The code uses `select`, `data`, and `join` to bind the parsed data points to circle elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed