-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
239 lines (234 loc) · 12.6 KB
/
Copy pathindex.html
File metadata and controls
239 lines (234 loc) · 12.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html>
<head>
<script>
var host = "lucaluca.github.io";
if ((host == window.location.host) && (window.location.protocol != "https:"))
window.location.protocol = "https";
</script>
<title>HealthyChi VIZ: Chicago Social Determinants of Health</title>
<link rel="stylesheet" href="bs/css/bootstrap-journal.min.css" />
<link rel="stylesheet" href="style.css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60569315-1', 'auto');
ga('send', 'pageview');
</script>
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
</head>
<body>
<div class="row">
<div class="col-md-2 pull-left hc-logo">
<a href="http://www.cityofchicago.org/city/en/depts/cdph/provdrs/healthychicago/svcs/healthy-chicago-2-0--community-health-assessment-and-improvement.html"><img src="healthy-chicago-logo.png" ></a>
</div>
<div class="col-md-8">
<h2>HealthyChi VIZ
<br/>
<small>Social Determinants of Health in Chicago's Community Areas</small>
</h2>
</div>
<div class="col-md-2 pull-right">
<h6>A project by <a href="http://lucaluca.github.io">Jonathan Giuffrida</a></h6>
</div>
</div>
<div id="container">
<div class="row">
<div id="chart" class="col-md-7 col-md-offset-1">
<div class="tip" style="display: none;">
<div class="ca row">Community Area</div>
<div class="rd row">
<span class="name">label</span><br>
<span class="value">value</span> <span class="units">units</span>
</div>
<div class="x row">
<span class="name">label</span><br>
<span class="value">value</span> <span class="units">units</span>
</div>
<div class="y row">
<span class="name">label</span><br>
<span class="value">value</span> <span class="units">units</span>
</div>
</div>
</div>
<div class="col-md-4" id="error">
<noscript>
<p>To use this website, you will need to enable JavaScript.</p>
<p>Please see these <a href="http://www.enable-javascript.com/" target="_blank">
instructions for enabling JavaScript in your web browser</a>.</p>
</noscript>
</div>
<div class="col-md-4">
<form id="controls">
<div class="small-instructions">
Choose variables from below to put in the interactive scatterplot, and mouse over each bubble to see which community area it represents. <a href="#instructions" id="show-instructions">Full instructions</a>
</div>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="examples">
<h4 class="panel-title">
<a data-toggle="collapse" href="#collapseExamples" aria-expanded="true" aria-controls="collapseExamples" class="">Examples</a>
</h4>
</div>
<div id="collapseExamples" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingExamples" aria-expanded="true">
<div class="list-group">
<a href="#" class="list-group-item list-group-item-default">
<h4 class="list-group-item-heading">Divergence in Outcomes</h4>
<p class="list-group-item-text">The Hardship Index tends to predict poor health outcomes (shown as Years of Potential Life Lost, or YPLL) fairly well, but there is a clear divergence among community areas. Some score highly on the Hardship Index without suffering higher YPLL.</p>
</a>
<a href="#" class="list-group-item list-group-item-default">
<h4 class="list-group-item-heading">A Hispanic Paradox</h4>
<p class="list-group-item-text">By making the size of each bubble represent that community area's Latino population, we see that community areas that are majority Latino tend not to suffer worse health outcomes even when life is hard. Change the Y axis to different variables under Mortality, below, to see what diseases are causing this divergence in health outcomes. </p>
</a>
<a href="#" class="list-group-item list-group-item-default">
<h4 class="list-group-item-heading">Obesity Among the Uninsured</h4>
<p class="list-group-item-text">We've long known that lack of health insurance is correlated with many adverse health indicators. Here we see that community areas with higher uninsurance rates also tend to have higher rates of obesity. (The sizes of bubbles are proportional to population.)</p>
</a>
<a href="#" class="list-group-item list-group-item-default">
<h4 class="list-group-item-heading">What Makes Armour Square Different?</h4>
<p class="list-group-item-text">The clear outlier in the preceding graph is Armour Square, which has a high uninsured population but little obesity. By setting the size of bubbles proportional to their Asian, Non-Hispanic population, we find a possible explanation.</p>
</a>
<a href="#" class="list-group-item list-group-item-default">
<h4 class="list-group-item-heading">A Determinant of Infant Mortality</h4>
<p class="list-group-item-text">Community areas with higher foreclosure rates are more likely to also have worse child health outcomes, especially infant mortality rates, which can increase by a factor of 10 in neighborhoods hard-hit by the foreclosure crisis.</p>
</a>
<a href="#" class="list-group-item list-group-item-default">
<h4 class="list-group-item-heading" style="font-size: 15px; color: #777;">Reset</h4>
</a>
</div>
</div>
</div>
</div>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
</div>
</form>
</div>
</div>
<div class="row">
<div class="col-md-2 col-md-offset-1 legend">
<table>
<tr data-region=1>
<td style="background-color: #d62728;">
</td>
<td>Far North Side</td>
</tr>
<tr data-region=2>
<td style="background-color: #2ca02c;"></td>
<td>North Side</td>
</tr>
<tr data-region=3>
<td style="background-color: #9467bd;"></td>
<td>Central</td>
</tr>
</table>
</div>
<div class="col-md-2 legend">
<table>
<tr data-region=4>
<td style="background-color: #5091C8;">
</td>
<td>Northwest Side</td>
</tr>
<tr data-region=5>
<td style="background-color: #A57D55;"></td>
<td>Far Southwest Side</td>
</tr>
<tr data-region=6>
<td style="background-color: #17becf;"></td>
<td>Southwest Side</td>
</tr>
</table>
</div>
<div class="col-md-2 legend">
<table>
<tr data-region=7>
<td style="background-color: #DBDB4A;">
</td>
<td>South Side</td>
</tr>
<tr data-region=8>
<td style="background-color: #e377c2;"></td>
<td>Far Southeast Side</td>
</tr>
<tr data-region=9>
<td style="background-color: #ff7f0e;"></td>
<td>West Side</td>
</tr>
</table>
</div>
<div class="col-md-5 statistics pull-right">
<table>
<thead>
<tr>
<td></td><td class="x"></td><td class="y"></td><td class="size"></td>
</tr>
</thead>
<tbody>
<tr class="mean">
<td>Mean</td><td class="x"></td><td class="y"></td><td class="size"></td>
</tr>
<tr class="min">
<td>Minimum</td><td class="x"></td><td class="y"></td><td class="size"></td>
</tr>
<tr class="25">
<td>25%</td><td class="x"></td><td class="y"></td><td class="size"></td>
</tr>
<tr class="median">
<td>Median</td><td class="x"></td><td class="y"></td><td class="size"></td>
</tr>
<tr class="75">
<td>75%</td><td class="x"></td><td class="y"></td><td class="size"></td>
</tr>
<tr class="max">
<td>Maximum</td><td class="x"></td><td class="y"></td><td class="size"></td>
</tr>
</tbody>
</table>
</div>
<a name="instructions"></a>
<div class="col-md-6 col-md-offset-1 instructions">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="Instructions">
<h4 class="panel-title">
<a data-toggle="collapse" href="#collapse0" aria-expanded="true" aria-controls="collapse0" class="">Instructions</a>
</h4>
</div>
<div id="collapse0" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading0" aria-expanded="true">
<div class="panel-body">
<b>This is an interactive scatterplot</b> to look at social determinants of health alongside various health outcomes in Chicago's 77 community areas. You can put any variables on the X and Y axes to look at their relationship by clicking <code>x</code> or <code>y</code> next to the variables you want in the list below. The size of the bubbles indicates a third variable, which you can change by clicking <code>size</code>. Mouse over the bubbles for more information and to identify which community area a bubble represents. By default, this scatterplot shows how <code>Infant Mortality</code> increases in community areas that score highly on the <code>Hardship Index</code>, and the size of a bubble is proportional to the <code>Population</code> of that community area. You can also see summary statistics of these variables to the right.
<br/>
<br/>
<b>It's important to remember</b> that this scatterplot shows relationships but not causal effects. Just because two variables show a clear trend does not mean that one causes the other: both could be caused by a third, hidden factor. We also recognize that it is difficult to draw broad conclusions about the health of Chicago's citizens by looking only at its 77 community areas, which represent vastly different populations and demographics. No community can be fully represented by a bubble on a graph. Even so, this tool can point us toward the right questions to investigate further.
<br/>
<br/>
<a href="map.png"><img src="map.png" width="50%" class="pull-right"></a><b>The color of the bubbles</b> represent the nine "Sides" of Chicago, as seen in the map to the right. You can click a Side in the legend to highlight community areas.
<br/>
<br/>
<b>All data is provided</b> by the Epidemiology and Public Health Informatics Unit at the Chicago Department of Public Health. The map of the community areas is by Alissapump and licensed under CC BY-SA 3.0 via <a href="http://commons.wikimedia.org/wiki/File:Map_of_the_Community_Areas_and_%27Sides%27_of_the_City_of_Chicago.svg#mediaviewer/File:Map_of_the_Community_Areas_and_%27Sides%27_of_the_City_of_Chicago.svg">Wikimedia Commons</a>. As a disclaimer, this tool is still in development and is only intended for internal planning purposes. It is not an official City of Chicago application. All code is open-source and the visualization is by <a href="http://lucaluca.github.io">Jonathan Giuffrida</a>, based on <a href="http://bl.ocks.org/msbarry/9911363">this scatterplot</a> by Michael Barry.
<br/>
<br/><small>Version 1.1: November 2015</small>
<br/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--
<defs>
<filter id="f1" x="-40%" y="-40%" height="200%" width="200%">
<feOffset result="offOut" in="SourceAlpha" dx="4" dy="4" />
<feGaussianBlur result="blurOut" in="offOut" stdDeviation="8" />
<feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
</filter>
</defs>
<circle r="30" cx="50" cy="50" style="stroke:gray; fill:aliceblue; stroke-width:3px" filter="url(#f1)" />
</svg>
-->
<script src="d3.min.js" charset="utf-8"></script>
<script src="jquery-1.11.2.min.js"></script>
<script src="bs/js/bootstrap.min.js"></script>
<script src="sdh.js"></script>