A6 Scatter Plot
✓ Published1🌍 Public
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 descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed