Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Basic Scatter Plot with React & D3

Public visualization

Viewing a saved revision (read-only)

9fd1c59f45eb40319c9a2db41af43a40

Fork of Basic Scatter Plot with React & D3

0 stars1🌍 Public
RRyan Offstein
Last edited Sep 9, 2025
Created on Sep 9, 2025

A React and D3 scatter plot visualizes hospital readmission metrics across U.S. states, comparing the number of hospitals performing worse versus better than the national average for each measure. The code loads CSV data, converts non-numeric values to NaN, and filters out invalid points before rendering circles with d3.scaleLinear. The `viz` function uses `selectAll` and `data().join()` to bind points, with padding applied to the x and y axes. The dataset comes from CMS hospital readmission rates per state.

AI-generated description