Skip to main content
Public

Share visualization

Loading preview…

A4 Scatter Plot in D3

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

A4 Scatter Plot in D3

3
Nnathanjmuljadi@gmail.com
Last edited Feb 16, 2025
Created on Feb 16, 2025
Forked from D3 Scatter Plot

This interactive D3.js scatter plot visualizes police shootings by age, aggregating individual records from a CSV dataset into counts per age and mapping them on linear scales. Built with D3 v7, the SVG rendering uses `d3.csv` to load data, `d3.rollup` for aggregation, and `d3.scaleLinear`, `axisBottom`, and `axisLeft` from D3’s scale and axis APIs to produce axes. Circles are positioned via `selectAll` and `join`, with margins and window dimensions defining the full-viewport layout. The chart is a fork of a VizHub example, displaying counts of shootings on the y-axis against age.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed