Build a cardiometabolic equity dashboard aligning race-stratified outcomes, community…
- User
Build a cardiometabolic equity dashboard aligning race-stratified outcomes, community investments, and accountability.
Assistant
The user wants a cardiometabolic equity dashboard that shows:
- Race-stratified health outcomes (diabetes, hypertension, cardiovascular disease)
- Community investments by area
- Accountability metrics
This is a data visualization dashboard, so I'll create an interactive single-page HTML application with:
Key features:
- Race/ethnicity stratified outcomes data
- Community investment tracking
- Accountability scorecards
- Interactive charts and visualizations
- Clean, professional design suitable for healthcare/public health
Design approach:
- Use a data-driven, clean aesthetic appropriate for healthcare
- Color palette: Deep blues/teals for trust, with warm accent for alerts
- Professional typography (maybe Space Grotesk + DM Sans)
- Card-based layout with clear data hierarchy
- Interactive elements: tabs, hover states, filters
Data to include:
- Outcomes by race: diabetes rates, hypertension control, CVD mortality, A1C levels
- Investment data: funding amounts, locations, types
- Accountability: goal vs actual, disparities, trends
Let me build this as a comprehensive dashboard.
Cardiometabolic Equity Dashboard
A comprehensive dashboard visualizing health equity data across racial groups, tracking community investments, and measuring accountability metrics. Built with a professional healthcare aesthetic using deep teals and warm accent colors.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cardiometabolic Equity Dashboard</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap" rel="stylesheet"> <style> :root { --bg: #0a1215; --bg-elevated: #111a1e; --card: #152328; --card-hover: #1a2c32; --border: #243a42; --fg: #e8f1f4; --fg-muted: #7a9ba6; --accent: #00d4aa; --accent-dim: rgba(0, 212, 170, 0.15); --alert: #ff6b5b; --alert-dim: rgba(255, 107, 91, 0.15); --warning: #ffb84d; --chart-1: #00d4aa; --chart-2: #3b82f6; --chart-3: #a855f7; --chart-4: #f97316; --chart-5: #ec4899; } * { box-sizing: border-box; } body { font-family: 'IBM Plex Sans', sans-serif; background: var(--bg); color: var(--fg); min-height: 100vh; } h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; } .bg-pattern { background-image: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 212, 170, 0.08) 0%, transparent 50%), radial-gradient(ellipse 60% 40% at 80% 110%, rgba(59, 130, 246, 0.06) 0%, transparent 50%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23243a42' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); } .card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s ease; } .card:hover { background: var(--card-hover); border-color: rgba(0, 212, 170, 0.3); } .stat-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; } .stat-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); } .tab-btn { padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500; transition: all 0.2s ease; color: var(--fg-muted); background: transparent; border: 1px solid transparent; } .tab-btn:hover { color: var(--fg); background: var(--card); } .tab-btn.active { color: var(--accent); background: var(--accent-dim); border-color: rgba(0, 212, 170, 0.3); } .metric-ring { transform: rotate(-90deg); } .metric-ring circle { transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1); } .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; } .fade-in.visible { opacity: 1; transform: translateY(0); } .investment-row { transition: all 0.2s ease; } .investment-row:hover { background: var(--card-hover); } .status-badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .status-on-track { background: var(--accent-dim); color: var(--accent); } .status-at-risk { background: rgba(255, 184, 77, 0.15); color: var(--warning); } .status-behind { background: var(--alert-dim); color: var(--alert); } .chart-bar { transition: all 0.3s ease; cursor: pointer; } .chart-bar:hover { filter: brightness(1.2); } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } .scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; } .scrollbar-thin::-webkit-scrollbar-track { background: var(--bg-elevated); } .scrollbar-thin::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } .scrollbar-thin::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); } </style> </head> <body class="bg-pattern"> <!-- Header --> <header class="border-b border-[var(--border)] bg-[var(--bg-elevated)]/80 backdrop-blur-xl sticky top-0 z-50"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex items-center justify-between h-16"> <div class="flex items-center gap-3"> <div class="w-10 h-10 rounded-lg bg-gradient-to-br from-[var(--accent)] to-[#3b82f6] flex items-center justify-center"> <svg class="w-6 h-6 text-[var(--bg)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"/> </svg> </div> <div> <h1 class="text-lg font-bold tracking-tight">Cardiometabolic Equity</h1> <p class="text-xs text-[var(--fg-muted)]">Regional Health System Dashboard</p> </div> </div> <nav class="hidden md:flex items-center gap-1" role="tablist" aria-label="Dashboard sections"> <button class="tab-btn active" data-tab="outcomes" role="tab" aria-selected="true">Outcomes</button> <button class="tab-btn" data-tab="investments" role="tab" aria-selected="false">Investments</button> <button class="tab-btn" data-tab="accountability" role="tab" aria-selected="false">Accountability</button> </nav> <div class="flex items-center gap-3"> <span class="hidden sm:inline text-xs text-[var(--fg-muted)]">Last updated: Dec 2024</span> <button id="refreshBtn" class="p-2 rounded-lg hover:bg-[var(--card)] transition-colors" aria-label="Refresh data"> <svg class="w-5 h-5 text-[var(--fg-muted)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/> </svg> </button> </div> </div> </div> </header> <!-- Mobile Nav --> <div class="md:hidden border-b border-[var(--border)] bg-[var(--bg-elevated)] px-4 py-2"> <nav class="flex gap-1 overflow-x-auto scrollbar-thin" role="tablist" aria-label="Dashboard sections mobile"> <button class="tab-btn active whitespace-nowrap" data-tab="outcomes" role="tab">Outcomes</button> <button class="tab-btn whitespace-nowrap" data-tab="investments" role="tab">Investments</button> <button class="tab-btn whitespace-nowrap" data-tab="accountability" role="tab">Accountability</button> </nav> </div> <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6"> <!-- Outcomes Tab --> <section id="outcomes-panel" class="tab-panel" role="tabpanel" aria-labelledby="outcomes-tab"> <!-- Key Disparity Alert --> <div class="card p-4 mb-6 border-l-4 border-l-[var(--alert)] fade-in"> <div class="flex items-start gap-3"> <div class="w-8 h-8 rounded-full bg-[var(--alert-dim)] flex items-center justify-center flex-shrink-0 mt-0.5"> <svg class="w-4 h-4 text-[var(--alert)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/> </svg> </div> <div> <h3 class="font-semibold text-[var(--alert)]">Persistent Disparity Detected</h3> <p class="text-sm text-[var(--fg-muted)] mt-1">Diabetes uncontrolled rate is <strong class="text-[var(--fg)]">2.4x higher</strong> in Black patients compared to White patients. Investment targeted for Q1 2025.</p> </div> </div> </div> <!-- Summary Stats --> <div class="grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6"> <div class="card p-4 fade-in" style="transition-delay: 0.1s"> <p class="text-xs text-[var(--fg-muted)] uppercase tracking-wider mb-2">Population Served</p> <p class="text-2xl font-bold">847K</p> <p class="text-xs text-[var(--accent)] mt-1">+12% from 2023</p> </div> <div class="card p-4 fade-in" style="transition-delay: 0.15s"> <p class="text-xs text-[var(--fg-muted)] uppercase tracking-wider mb-2">Equity Index</p> <p class="text-2xl font-bold">0.72</p> <p class="text-xs text-[var(--warning)] mt-1">Target: 0.85</p> </div> <div class="card p-4 fade-in" style="transition-delay: 0.2s"> <p class="text-xs text-[var(--fg-muted)] uppercase tracking-wider mb-2">Care Gaps Closed</p> <p class="text-2xl font-bold">4,821</p> <p class="text-xs text-[var(--accent)] mt-1">YTD 2024</p> </div> <div class="card p-4 fade-in" style="transition-delay: 0.25s"> <p class="text-xs text-[var(--fg-muted)] uppercase tracking-wider mb-2">Active Programs</p> <p class="text-2xl font-bold">23</p> <p class="text-xs text-[var(--fg-muted)] mt-1">Across 8 regions</p> </div> </div> <!-- Race-Stratified Outcomes --> <div class="grid lg:grid-cols-3 gap-6"> <!-- Main Chart --> <div class="lg:col-span-2 card p-6 fade-in" style="transition-delay: 0.3s"> <div class="flex items-center justify-between mb-6"> <div> <h2 class="text-lg font-bold">Outcomes by Race/Ethnicity</h2> <p class="text-sm text-[var(--fg-muted)]">Age-adjusted rates per 100 patients</p> </div> <select id="outcomeMetric" class="bg-[var(--bg)] border border-[var(--border)] rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-[var(--accent)]" aria-label="Select metric"> <option value="diabetes">Diabetes Control</option> <option value="hypertension">Hypertension Control</option> <option value="cvd">CVD Mortality</option> <option value="screening">Screening Completion</option> </select> </div> <div id="outcomesChart" class="space-y-4"> <!-- Rendered by JS --> </div> <div class="flex flex-wrap gap-4 mt-6 pt-4 border-t border-[var(--border)]"> <div class="flex items-center gap-2"> <span class="w-3 h-3 rounded-full bg-[var(--accent)]"></span> <span class="text-xs text-[var(--fg-muted)]">Meeting Target</span> </div> <div class="flex items-center gap-2"> <span class="w-3 h-3 rounded-full bg-[var(--warning)]"></span> <span class="text-xs text-[var(--fg-muted)]">Near Target</span> </div> <div class="flex items-center gap-2"> <span class="w-3 h-3 rounded-full bg-[var(--alert)]"></span> <span class="text-xs text-[var(--fg-muted)]">Below Target</span> </div> </div> </div> <!-- Disparity Index --> <div class="card p-6 fade-in" style="transition-delay: 0.35s"> <h2 class="text-lg font-bold mb-2">Disparity Index</h2> <p class="text-sm text-[var(--fg-muted)] mb-6">Ratio vs. reference population</p> <div id="disparityRings" class="space-y-6"> <!-- Rendered by JS --> </div> </div> </div> </section> <!-- Investments Tab --> <section id="investments-panel" class="tab-panel hidden" role="tabpanel" aria-labelledby="investments-tab"> <div class="grid lg:grid-cols-3 gap-6 mb-6"> <div class="card p-6 fade-in"> <p class="text-xs text-[var(--fg-muted)] uppercase tracking-wider mb-2">Total Committed</p> <p class="text-3xl font-bold text-[var(--accent)]">$12.4M</p> <div class="mt-4"> <div class="stat-bar"> <div class="stat-fill bg-[var(--accent)]" style="width: 68%"></div> </div> <p class="text-xs text-[var(--fg-muted)] mt-2">$8.4M deployed (68%)</p> </div> </div> <div class="card p-6 fade-in" style="transition-delay: 0.1s"> <p class="text-xs text-[var(--fg-muted)] uppercase tracking-wider mb-2">Community Partners</p> <p class="text-3xl font-bold">47</p> <p class="text-sm text-[var(--fg-muted)] mt-2">Active organizations</p> </div> <div class="card p-6 fade-in" style="transition-delay: 0.15s"> <p class="text-xs text-[var(--fg-muted)] uppercase tracking-wider mb-2">People Reached</p> <p class="text-3xl font-bold">156K</p> <p class="text-sm text-[var(--accent)] mt-2">+34% from 2023</p> </div> </div> <!-- Investment Categories --> <div class="grid lg:grid-cols-2 gap-6 mb-6"> <div class="card p-6 fade-in" style="transition-delay: 0.2s"> <h2 class="text-lg font-bold mb-4">Investment by Category</h2> <div id="investmentCategories" class="space-y-4"> <!-- Rendered by JS --> </div> </div> <div class="card p-6 fade-in" style="transition-delay: 0.25s"> <h2 class="text-lg font-bold mb-4">Geographic Distribution</h2> <div id="geoDistribution" class="space-y-3"> <!-- Rendered by JS --> </div> </div> </div> <!-- Recent Investments --> <div class="card overflow-hidden fade-in" style="transition-delay: 0.3s"> <div class="p-4 border-b border-[var(--border)]"> <h2 class="text-lg font-bold">Recent Community Investments</h2> </div> <div class="overflow-x-auto scrollbar-thin"> <table class="w-full text-sm"> <thead class="bg-[var(--bg-elevated)]"> <tr> <th class="text-left p-4 text-[var(--fg-muted)] font-medium">Organization</th> <th class="text-left p-4 text-[var(--fg-muted)] font-medium">Focus Area</th> <th class="text-left p-4 text-[var(--fg-muted)] font-medium">Amount</th> <th class="text-left p-4 text-[var(--fg-muted)] font-medium">Population</th> <th class="text-left p-4 text-[var(--fg-muted)] font-medium">Status</th> </tr> </thead> <tbody id="investmentsTable"> <!-- Rendered by JS --> </tbody> </table> </div> </div> </section> <!-- Accountability Tab --> <section id="accountability-panel" class="tab-panel hidden" role="tabpanel" aria-labelledby="accountability-tab"> <!-- Scorecard Summary --> <div class="grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6"> <div class="card p-4 text-center fade-in"> <div class="w-16 h-16 mx-auto mb-3 relative"> <svg class="metric-ring w-full h-full" viewBox="0 0 64 64"> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--border)" stroke-width="6"/> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--accent)" stroke-width="6" stroke-dasharray="175.9" stroke-dashoffset="35.2" stroke-linecap="round"/> </svg> <span class="absolute inset-0 flex items-center justify-center text-lg font-bold">80%</span> </div> <p class="text-sm font-medium">Process Goals</p> <p class="text-xs text-[var(--accent)]">12/15 complete</p> </div> <div class="card p-4 text-center fade-in" style="transition-delay: 0.1s"> <div class="w-16 h-16 mx-auto mb-3 relative"> <svg class="metric-ring w-full h-full" viewBox="0 0 64 64"> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--border)" stroke-width="6"/> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--warning)" stroke-width="6" stroke-dasharray="175.9" stroke-dashoffset="70.4" stroke-linecap="round"/> </svg> <span class="absolute inset-0 flex items-center justify-center text-lg font-bold">60%</span> </div> <p class="text-sm font-medium">Outcome Goals</p> <p class="text-xs text-[var(--warning)]">6/10 on track</p> </div> <div class="card p-4 text-center fade-in" style="transition-delay: 0.15s"> <div class="w-16 h-16 mx-auto mb-3 relative"> <svg class="metric-ring w-full h-full" viewBox="0 0 64 64"> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--border)" stroke-width="6"/> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--accent)" stroke-width="6" stroke-dasharray="175.9" stroke-dashoffset="26.4" stroke-linecap="round"/> </svg> <span class="absolute inset-0 flex items-center justify-center text-lg font-bold">85%</span> </div> <p class="text-sm font-medium">Reporting</p> <p class="text-xs text-[var(--accent)]">All reports current</p> </div> <div class="card p-4 text-center fade-in" style="transition-delay: 0.2s"> <div class="w-16 h-16 mx-auto mb-3 relative"> <svg class="metric-ring w-full h-full" viewBox="0 0 64 64"> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--border)" stroke-width="6"/> <circle cx="32" cy="32" r="28" fill="none" stroke="var(--alert)" stroke-width="6" stroke-dasharray="175.9" stroke-dashoffset="105.5" stroke-linecap="round"/> </svg> <span class="absolute inset-0 flex items-center justify-center text-lg font-bold">40%</span> </div> <p class="text-sm font-medium">Disparity Reduction</p> <p class="text-xs text-[var(--alert)]">4 of 10 targets</p> </div> </div> <!-- Strategic Goals --> <div class="card p-6 mb-6 fade-in" style="transition-delay: 0.25s"> <h2 class="text-lg font-bold mb-4">2024 Strategic Equity Goals</h2> <div id="strategicGoals" class="space-y-4"> <!-- Rendered by JS --> </div> </div> <!-- Leadership Accountability --> <div class="grid lg:grid-cols-2 gap-6"> <div class="card p-6 fade-in" style="transition-delay: 0.3s"> <h2 class="text-lg font-bold mb-4">Executive Sponsor Report</h2> <div class="flex items-center gap-4 mb-4 pb-4 border-b border-[var(--border)]"> <div class="w-12 h-12 rounded-full bg-gradient-to-br from-[var(--chart-2)] to-[var(--chart-3)] flex items-center justify-center text-lg font-bold"> DR </div> <div> <p class="font-medium">Dr. Diana Rodriguez</p> <p class="text-sm text-[var(--fg-muted)]">Chief Health Equity Officer</p> </div> </div> <div class="space-y-3 text-sm"> <div class="flex justify-between"> <span class="text-[var(--fg-muted)]">Board Presentations</span> <span class="font-medium">4/4</span> </div> <div class="flex justify-between"> <span class="text-[var(--fg-muted)]">Community Forums</span> <span class="font-medium">11/12</span> </div> <div class="flex justify-between"> <span class="text-[var(--fg-muted)]">Budget Utilization</span> <span class="font-medium">89%</span> </div> <div class="flex justify-between"> <span class="text-[var(--fg-muted)]">Next Review</span> <span class="font-medium text-[var(--accent)]">Jan 15, 2025</span> </div> </div> </div> <div class="card p-6 fade-in" style="transition-delay: 0.35s"> <h2 class="text-lg font-bold mb-4">Community Advisory Input</h2> <div class="space-y-4"> <div class="flex items-center gap-3"> <div class="w-10 h-10 rounded-lg bg-[var(--accent-dim)] flex items-center justify-center"> <svg class="w-5 h-5 text-[var(--accent)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z"/> </svg> </div> <div class="flex-1"> <p class="text-sm font-medium">Community Sessions YTD</p> <p class="text-xs text-[var(--fg-muted)]">18 listening sessions conducted</p> </div> <span class="text-lg font-bold">18</span> </div> <div class="flex items-center gap-3"> <div class="w-10 h-10 rounded-lg bg-[var(--accent-dim)] flex items-center justify-center"> <svg class="w-5 h-5 text-[var(--accent)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/> </svg> </div> <div class="flex-1"> <p class="text-sm font-medium">Recommendations Implemented</p> <p class="text-xs text-[var(--fg-muted)]">From community feedback</p> </div> <span class="text-lg font-bold">14/19</span> </div> <div class="flex items-center gap-3"> <div class="w-10 h-10 rounded-lg bg-[var(--accent-dim)] flex items-center justify-center"> <svg class="w-5 h-5 text-[var(--accent)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"/> </svg> </div> <div class="flex-1"> <p class="text-sm font-medium">Advisory Board Members</p> <p class="text-xs text-[var(--fg-muted)]">Representing 8 communities</p> </div> <span class="text-lg font-bold">15</span> </div> </div> </div> </div> </section> </main> <script> // Data const outcomesData = { diabetes: { title: 'Diabetes Control (A1C < 8%)', target: 75, data: [ { group: 'White', value: 72, population: 342000 }, { group: 'Black', value: 54, population: 198000 }, { group: 'Hispanic/Latino', value: 61, population: 167000 }, { group: 'Asian', value: 78, population: 89000 }, { group: 'Native American', value: 48, population: 28000 }, { group: 'Pacific Islander', value: 52, population: 23000 } ] }, hypertension: { title: 'Hypertension Control (BP < 140/90)', target: 70, data: [ { group: 'White', value: 71, population: 342000 }, { group: 'Black', value: 58, population: 198000 }, { group: 'Hispanic/Latino', value: 63, population: 167000 }, { group: 'Asian', value: 74, population: 89000 }, { group: 'Native American', value: 55, population: 28000 }, { group: 'Pacific Islander', value: 59, population: 23000 } ] }, cvd: { title: 'CVD Mortality (per 100K, lower is better)', target: 25, inverse: true, data: [ { group: 'White', value: 28, population: 342000 }, { group: 'Black', value: 48, population: 198000 }, { group: 'Hispanic/Latino', value: 32, population: 167000 }, { group: 'Asian', value: 22, population: 89000 }, { group: 'Native American', value: 52, population: 28000 }, { group: 'Pacific Islander', value: 45, population: 23000 } ] }, screening: { title: 'Preventive Screening Completion', target: 80, data: [ { group: 'White', value: 76, population: 342000 }, { group: 'Black', value: 62, population: 198000 }, { group: 'Hispanic/Latino', value: 58, population: 167000 }, { group: 'Asian', value: 82, population: 89000 }, { group: 'Native American', value: 51, population: 28000 }, { group: 'Pacific Islander', value: 55, population: 23000 } ] } }; const investmentsData = [ { org: 'Greater Roseland Community Health', focus: 'Diabetes Prevention', amount: 750000, population: 'Black', status: 'deployed' }, { org: 'South Side Wellness Alliance', focus: 'Hypertension Management', amount: 420000, population: 'Black', status: 'deployed' }, { org: 'Little Village Community Center', focus: 'Nutrition Education', amount: 280000, population: 'Hispanic/Latino', status: 'deployed' }, { org: 'Native Health Initiative', focus: 'Screening Access', amount: 195000, population: 'Native American', status: 'committed' }, { org: 'Pacific Islander Health Network', focus: 'CVD Prevention', amount: 165000, population: 'Pacific Islander', status: 'committed' }, { org: 'Rural Health Outreach Program', focus: 'Telehealth Expansion', amount: 340000, population: 'Multi-ethnic', status: 'deployed' }, { org: 'Faith-Based Health Coalition', focus: 'Community Health Workers', amount: 520000, population: 'Black', status: 'deployed' }, { org: 'Chinatown Senior Services', focus: 'Chronic Care Management', amount: 185000, population: 'Asian', status: 'deployed' } ]; const categoriesData = [ { name: 'Community Health Workers', amount: 3200000, percent: 26 }, { name: 'Screening & Diagnostics', amount: 2800000, percent: 23 }, { name: 'Nutrition & Food Access', amount: 2100000, percent: 17 }, { name: 'Digital Health Tools', amount: 1800000, percent: 15 }, { name: 'Facility Infrastructure', amount: 1500000, percent: 12 }, { name: 'Training & Education', amount: 1000000, percent: 8 } ]; const geoData = [ { region: 'South Side', amount: 4200000, share: 34 }, { region: 'West Side', amount: 2800000, share: 23 }, { region: 'North Suburbs', amount: 1800000, share: 15 }, { region: 'Rural Counties', amount: 2100000, share: 17 }, { region: 'Downtown/Urban Core', amount: 1500000, share: 12 } ]; const strategicGoals = [ { goal: 'Reduce Black-White diabetes disparity by 30%', target: 30, current: 12, status: 'at-risk', deadline: 'Dec 2025' }, { goal: 'Achieve 70% hypertension control in all groups', target: 100, current: 58, status: 'behind', deadline: 'Jun 2025' }, { goal: 'Deploy 100 community health workers', target: 100, current: 78, status: 'on-track', deadline: 'Dec 2024' }, { goal: 'Complete 500K preventive screenings', target: 500000, current: 412000, status: 'on-track', deadline: 'Dec 2024' }, { goal: 'Establish 15 new community partnerships', target: 15, current: 11, status: 'on-track', deadline: 'Mar 2025' }, { goal: 'Reduce CVD mortality gap by 25%', target: 25, current: 8, status: 'behind', deadline: 'Dec 2026' } ]; // Utility functions function getStatusColor(value, target, inverse = false) { const ratio = inverse ? target / value : value / target; if (ratio >= 0.95) return 'var(--accent)'; if (ratio >= 0.8) return 'var(--warning)'; return 'var(--alert)'; } function formatCurrency(amount) { if (amount >= 1000000) return `$${(amount / 1000000).toFixed(1)}M`; if (amount >= 1000) return `$${(amount / 1000).toFixed(0)}K`; return `$${amount}`; } function formatPopulation(pop) { if (pop >= 1000) return `${(pop / 1000).toFixed(0)}K`; return pop.toString(); } // Render functions function renderOutcomesChart(metric) { const container = document.getElementById('outcomesChart'); if (!container) return; const data = outcomesData[metric]; const maxValue = Math.max(...data.data.map(d => d.value)); const chartWidth = 100; container.innerHTML = data.data.map((item, idx) => { const barWidth = (item.value / (data.inverse ? Math.max(maxValue, data.target) : 100)) * chartWidth; const color = getStatusColor(item.value, data.target, data.inverse); const statusIcon = item.value >= data.target !== data.inverse ? `<svg class="w-4 h-4 text-[var(--accent)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>` : `<svg class="w-4 h-4 text-[var(--alert)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/></svg>`; return ` <div class="chart-bar" style="animation-delay: ${idx * 0.1}s"> <div class="flex items-center justify-between mb-2"> <div class="flex items-center gap-2"> <span class="font-medium">${item.group}</span> <span class="text-xs text-[var(--fg-muted)]">(${formatPopulation(item.population)})</span> </div> <div class="flex items-center gap-2"> <span class="text-lg font-bold" style="color: ${color}">${item.value}${data.inverse ? '' : '%'}</span> ${statusIcon} </div> </div> <div class="stat-bar"> <div class="stat-fill" style="width: ${barWidth}%; background: ${color}"></div> </div> <div class="flex justify-between mt-1"> <span class="text-xs text-[var(--fg-muted)]">0</span> <span class="text-xs text-[var(--fg-muted)]">Target: ${data.target}${data.inverse ? '' : '%'}</span> </div> </div> `; }).join(''); // Animate bars setTimeout(() => { container.querySelectorAll('.stat-fill').forEach(bar => { bar.style.opacity = '1'; }); }, 100); } function renderDisparityRings() { const container = document.getElementById('disparityRings'); if (!container) return; const disparities = [ { label: 'Diabetes', value: 2.4, target: 1.0 }, { label: 'Hypertension', value: 1.8, target: 1.0 }, { label: 'CVD Mortality', value: 2.1, target: 1.0 }, { label: 'Screening', value: 1.5, target: 1.0 } ]; container.innerHTML = disparities.map(item => { const percent = Math.min((item.value / 3) * 100, 100); const circumference = 2 * Math.PI * 36; const offset = circumference - (percent / 100) * circumference; const color = item.value <= 1.2 ? 'var(--accent)' : item.value <= 2.0 ? 'var(--warning)' : 'var(--alert)'; return ` <div class="flex items-center gap-4"> <div class="w-20 h-20 relative flex-shrink-0"> <svg class="metric-ring w-full h-full" viewBox="0 0 80 80"> <circle cx="40" cy="40" r="36" fill="none" stroke="var(--border)" stroke-width="6"/> <circle cx="40" cy="40" r="36" fill="none" stroke="${color}" stroke-width="6" stroke-dasharray="${circumference}" stroke-dashoffset="${offset}" stroke-linecap="round"/> </svg> <span class="absolute inset-0 flex items-center justify-center text-sm font-bold" style="color: ${color}">${item.value}x</span> </div> <div> <p class="font-medium">${item.label}</p> <p class="text-xs text-[var(--fg-muted)]">Black vs. White disparity</p> <p class="text-xs mt-1" style="color: ${color}">Target: 1.0x</p> </div> </div> `; }).join(''); } function renderInvestmentCategories() { const container = document.getElementById('investmentCategories'); if (!container) return; container.innerHTML = categoriesData.map(item => ` <div> <div class="flex justify-between mb-2"> <span class="text-sm font-medium">${item.name}</span> <span class="text-sm text-[var(--accent)]">${formatCurrency(item.amount)}</span> </div> <div class="stat-bar"> <div class="stat-fill bg-gradient-to-r from-[var(--accent)] to-[var(--chart-2)]" style="width: ${item.percent}%"></div> </div> </div> `).join(''); } function renderGeoDistribution() { const container = document.getElementById('geoDistribution'); if (!container) return; const maxShare = Math.max(...geoData.map(d => d.share)); container.innerHTML = geoData.map(item => ` <div class="flex items-center gap-3"> <div class="w-28 text-sm text-[var(--fg-muted)]">${item.region}</div> <div class="flex-1 stat-bar"> <div class="stat-fill bg-[var(--chart-2)]" style="width: ${(item.share / maxShare) * 100}%"></div> </div> <div class="w-16 text-right text-sm font-medium">${formatCurrency(item.amount)}</div> </div> `).join(''); } function renderInvestmentsTable() { const container = document.getElementById('investmentsTable'); if (!container) return; container.innerHTML = investmentsData.map(item => ` <tr class="investment-row border-b border-[var(--border)] last:border-0"> <td class="p-4 font-medium">${item.org}</td> <td class="p-4 text-[var(--fg-muted)]">${item.focus}</td> <td class="p-4 font-medium text-[var(--accent)]">${formatCurrency(item.amount)}</td> <td class="p-4">${item.population}</td> <td class="p-4"> <span class="status-badge ${item.status === 'deployed' ? 'status-on-track' : 'status-at-risk'}"> ${item.status} </span> </td> </tr> `).join(''); } function renderStrategicGoals() { const container = document.getElementById('strategicGoals'); if (!container) return; container.innerHTML = strategicGoals.map(item => { const percent = Math.min((item.current / item.target) * 100, 100); const statusClass = item.status === 'on-track' ? 'status-on-track' : item.status === 'at-risk' ? 'status-at-risk' : 'status-behind'; return ` <div class="p-4 bg-[var(--bg-elevated)] rounded-lg"> <div class="flex items-start justify-between mb-3"> <div class="flex-1"> <p class="font-medium">${item.goal}</p> <p class="text-xs text-[var(--fg-muted)] mt-1">Deadline: ${item.deadline}</p> </div> <span class="status-badge ${statusClass}">${item.status.replace('-', ' ')}</span> </div> <div class="stat-bar"> <div class="stat-fill" style="width: ${percent}%; background: var(--${item.status === 'on-track' ? 'accent' : item.status === 'at-risk' ? 'warning' : 'alert'})"></div> </div> <div class="flex justify-between mt-2 text-xs"> <span class="text-[var(--fg-muted)]">Progress</span> <span class="font-medium">${typeof item.current === 'number' && item.target >= 100 ? item.current.toLocaleString() : item.current} / ${typeof item.target === 'number' && item.target >= 100 ? item.target.toLocaleString() : item.target}${item.target < 100 && typeof item.target === 'number' ? (item.goal.includes('%') ? '%' : item.goal.includes('workers') ? '' : '%') : ''}</span> </div> </div> `; }).join(''); } // Tab switching function initTabs() { const tabBtns = document.querySelectorAll('.tab-btn'); const panels = document.querySelectorAll('.tab-panel'); tabBtns.forEach(btn => { btn.addEventListener('click', () => { const tab = btn.dataset.tab; tabBtns.forEach(b => { b.classList.remove('active'); b.setAttribute('aria-selected', 'false'); }); btn.classList.add('active'); btn.setAttribute('aria-selected', 'true'); panels.forEach(panel => { panel.classList.add('hidden'); }); const activePanel = document.getElementById(`${tab}-panel`); if (activePanel) { activePanel.classList.remove('hidden'); initFadeIn(activePanel); } }); }); } // Metric selector function initMetricSelector() { const selector = document.getElementById('outcomeMetric'); if (selector) { selector.addEventListener('change', (e) => { renderOutcomesChart(e.target.value); }); } } // Scroll reveal function initFadeIn(container = document) { const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('visible'); observer.unobserve(entry.target); } }); }, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' }); container.querySelectorAll('.fade-in').forEach(el => { observer.observe(el); }); } // Refresh button function initRefresh() { const btn = document.getElementById('refreshBtn'); if (btn) { btn.addEventListener('click', () => { btn.querySelector('svg').classList.add('animate-spin'); setTimeout(() => { btn.querySelector('svg').classList.remove('animate-spin'); renderAll(); }, 1000); }); } } function renderAll() { renderOutcomesChart('diabetes'); renderDisparityRings(); renderInvestmentCategories(); renderGeoDistribution(); renderInvestmentsTable(); renderStrategicGoals(); } // Initialize document.addEventListener('DOMContentLoaded', () => { renderAll(); initTabs(); initMetricSelector(); initFadeIn(); initRefresh(); }); </script> </body> </html>Key Features
1. Race-Stratified Outcomes
- Interactive bar charts showing health metrics (diabetes, hypertension, CVD, screening) by race/ethnicity
- Visual indicators for meeting/near/below targets
- Disparity index rings showing ratio vs. reference population
- Real-time metric switching via dropdown
2. Community Investments
- Total committed funding with deployment progress
- Investment breakdown by category (CHWs, screening, nutrition, etc.)
- Geographic distribution across regions
- Detailed table of recent investments with status badges
3. Accountability Framework
- Executive scorecard with circular progress indicators
- Strategic goals with progress bars and deadline tracking
- Leadership accountability section with sponsor info
- Community advisory input metrics
Design Decisions
- Color palette: Deep teal/slate backgrounds with cyan accent for healthcare trust, coral for alerts
- Typography: Space Grotesk for headlines (technical feel), IBM Plex Sans for data
- Visual hierarchy: Alert banners at top, summary stats, then detailed breakdowns
- Interactions: Tab navigation, metric selector, hover states on chart bars, refresh button
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.