Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
Mmustafaksyed1@gmail.com
Last edited Mar 30, 2026
Created on Mar 30, 2026

This reusable D3 scatter plot visualizes Supreme Court cases from 2018–2024, plotting petitioner codes against respondent codes. Each circle represents a case, colored by issue area (e.g., Criminal Procedure, Civil Rights), with a legend mapping colors to 14 issue categories. Built as a configurable `scatterPlot` function, it uses D3’s `scaleLinear`, `scaleOrdinal`, `axisLeft`, `axisBottom`, and `schemeCategory10` to render the SVG chart, complete with labeled axes, title, and interactive resizing via `window.innerWidth` and `window.innerHeight`.

AI-generated description
MIT Licensed

Similar vizzes