Skip to content

Commit 01ed6e8

Browse files
committed
Replace orientation with demographic flow
1 parent 77c07a0 commit 01ed6e8

5 files changed

Lines changed: 339 additions & 139 deletions

File tree

milestone2/index.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Teen Health Profile</title>
7-
<link rel="stylesheet" href="style.css?v=20260417b">
7+
<link rel="stylesheet" href="style.css?v=20260417d">
88
<script src="d3.v7.min.js?v=20260417c" defer></script>
9-
<script src="main.js?v=20260417c" defer></script>
9+
<script src="main.js?v=20260417d" defer></script>
1010
</head>
1111
<body>
1212

@@ -20,7 +20,7 @@ <h1>Teen Health Profile</h1>
2020
<section id="section-demographics">
2121
<p class="section-kicker">1. Orientation</p>
2222
<h2>Who Are We Looking At?</h2>
23-
<p class="section-desc">The YRBS starts as a survey cohort before it becomes a health profile. This opening view shows raw survey composition; later health estimates use the CDC survey weight.</p>
23+
<p class="section-desc">The YRBS starts with a survey cohort. This opening view shows raw survey composition so the denominator is visible before any interpretation.</p>
2424
<div class="orientation-layout">
2525
<aside id="survey-passport" class="survey-passport">
2626
<div class="passport-label">Dataset Passport</div>
@@ -37,16 +37,19 @@ <h2>Who Are We Looking At?</h2>
3737
</div>
3838
<p class="passport-note">Loading survey composition...</p>
3939
</aside>
40-
<div class="mosaic-panel">
41-
<div class="mosaic-toolbar">
42-
<div class="controls mosaic-controls">
43-
<label>Color by:</label>
44-
<div id="mosaic-controls" class="segmented-control" aria-label="Mosaic color dimension"></div>
40+
<div class="association-panel">
41+
<div class="association-toolbar">
42+
<div class="controls association-controls">
43+
<label>Connect:</label>
44+
<select id="flow-left-select" aria-label="Left demographic dimension"></select>
45+
<span class="flow-arrow">to</span>
46+
<select id="flow-right-select" aria-label="Right demographic dimension"></select>
47+
<button id="flow-swap" class="flow-swap" type="button">Swap</button>
4548
</div>
46-
<div id="mosaic-legend" class="mosaic-legend"></div>
49+
<div id="flow-summary" class="flow-summary"></div>
4750
</div>
48-
<div id="student-mosaic">
49-
<div class="loading-panel">Loading student mosaic...</div>
51+
<div id="demographic-flow-chart">
52+
<div class="loading-panel">Loading demographic associations...</div>
5053
</div>
5154
</div>
5255
</div>

0 commit comments

Comments
 (0)