Skip to main content
Public

Share visualization

Loading preview…

Data Analysis

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportHTML, source ZIP

Viewing a saved revision (read-only)

8xGJ2Xk59dUmZuf8lEoH8

Data Analysis

1 star0Public
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

  1. By State — Stacked bars of hospital counts per state, split by the Hospital overall rating (1–5 stars; red→green ramp). Tooltips per segment.
  2. Type / Ownership — Two side-by-side panels showing average star rating per Hospital Type and per Hospital 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.
  3. 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.
  4. 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.
  5. 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.format with commas / %.

Data handling

  • Loaded at runtime via d3.csv('/data/Hospital_General_Information.csv').
  • Numeric columns may contain "Not Available" or blanks; parsed with a num() helper that treats unparseable values as 0 (for counts) or null (for the overall rating).
  • Field names are referenced through a F map 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.