Skip to main content
100%

A6 Scatter Plot

✓ Published1🌍 Public
Nnathanjmuljadi@gmail.com
Last edited Mar 2, 2025
Created on Mar 2, 2025

This scatter plot visualizes the U.S. police shootings dataset, showing the count of shootings aggregated by victim age and race. The code uses D3 v5’s `d3.nest()` and `rollup` to group data, then plots aggregated circles with `d3.scaleLinear` for axes and `d3.scaleOrdinal` with the category10 scheme for race colors. Axes are labeled with `d3.axisBottom` and `d3.axisLeft`, and a color legend is rendered via the d3-legend library. A linked YouTube tutorial explains the implementation.

AI-generated description

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

MIT Licensed

Similar vizzes