Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

36ce63c074184e40bf910f7ad8045224

Reusable D3 Scatter Plot

0 stars0🌍 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