🌍 Public
Viewing a saved revision (read-only)
f07569fce2c64e08ba2ac48045d6a011
Fork of Basic Scatter Plot with React & D3
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