Viewing a saved revision (read-only)
8xGJ2Xk59dUmZuf8lEoH8
Jjanehoward10
Last edited Nov 8, 2026
Created on Nov 8, 2026
Created from react-d3-starter template
Hospital Quality Dashboard
Interactive multi-view dashboard over the CMS Hospital General Information
extract (data/Hospital_General_Information.csv).
Views
- By State — Stacked bars of hospital counts per state, split by the
Hospital overall rating(1–5 stars; red→green ramp). Tooltips per segment. - Type / Ownership — Two side-by-side panels showing average star rating
per
Hospital Typeand perHospital Ownership. Bars are color-coded by the rounded star rating; labels show the exact mean. Hover shows hospital count and the "better" / "worse" measure-outcome shares. - Distributions — Left: histogram of overall star ratings (plus a count of "Not Available"). Right: total measure outcomes reported across all hospitals for Mortality, Safety, and Readmission, stacked as Better / No different / Worse.
- Mortality / Safety / Readmission — One stacked horizontal bar per (ownership, group) pair showing the Better / No different / Worse share of reported measure outcomes. Makes ownership-level quality patterns visible.
- Hospital Profiles — Select a facility from the dropdown to see its multimetric profile: stacked bars of Better / No different / Worse across Mortality, Safety, Readmission, Patient Experience, and Timely & Effective Care, alongside a summary header with type, ownership, and overall rating.
Encodings
- Ordinal star rating —
schemeRdYlGn(1 = red, 5 = green). - Measure outcome — fixed palette: Better = green, No different = gray, Worse = red. Consistent across all views.
- Counts / shares — linear scales; labels use
d3.formatwith commas /%.
Data handling
- Loaded at runtime via
d3.csv('/data/Hospital_General_Information.csv'). - Numeric columns may contain
"Not Available"or blanks; parsed with anum()helper that treats unparseable values as 0 (for counts) ornull(for the overall rating). - Field names are referenced through a
Fmap using the exact CSV header spellings.
Files
index.html— page shell + import map.index.jsx— mounts<App />.App.jsx— loads data, parses fields, manages active view + facility selection.viz.js— top-level render dispatcher + title.renderChart.js— stacked-bar "by state" renderer.renderViews.js— renderers for type/ownership, distributions, group comparisons, and hospital profiles, plus shared helpers.useContainerDimensions.js— ResizeObserver size hook.styles.css— layout, tabs, controls.