-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (64 loc) · 3.77 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>D3Times</title>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<link rel="stylesheet" href="D3_data_journalism/assets/css/style.css">
<link rel="stylesheet" href="D3_data_journalism/assets/css/d3Style.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-12">
<h1>D3 Dynamic Scatterplot</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-9">
<div id="scatter">
<!-- We append our chart here. -->
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-9">
<div class="article">
<h2>Correlation Analysis of Income vs Health in America</h2>
<p></p>
<h5>Correlation Between Median Household Income and Obesity</h5>
<p> This selection of the scatterplot shows the correlation between Median Household Income (MHI) and Percent Obesity. As
we can see there is a strong correlation between these two metrics. As the MHI increases the percentage of people who are
obese steadily decreases. Further analysis might be warranted of the states and regions to see if there is an area in America
where this trend is stronger.</p>
<h5>Correlation Between Median Household Income and Smokers</h5>
<p> This selection of the scatterplot shows the correlation between MHI and the percentage of people who smoke across America.
Like the previous correlation (MHI vs Obesity) we can see a strong correlation between the two metrics. As MHI increases, the
percentage of people who smoke steaditly decreases. Maryland has the highest MHI and one of the lowest percentage of smokers.
Again, further analysis might be warranted to see if there is an area in America where this trend is stronger.</p>
<h5>Correlation Between Poverty and Healthcare</h5>
<p>This selection of the scatterplot shows the correlation between the percentage of People in Poverty (PIP) and the amount of
people without healthcare. As This chart shows, there is a strong correlation between the two metrics; as the PIP increases so
does the amount of people without healthcare. This adds to the overall trend in the dataset that as the amount of income increases,
the amount of health related issues decreases. At this point I would say further analysis is recommended of the states and
regions to see if there is some significance to the trends in certain parts of America.</p>
</div>
</div>
</div>
</div>
<!-- Footer-->
<div id="footer">
<p>Mathew Miller © 2021</p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.5.0/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.9.1/d3-tip.js"></script>
<script type="text/javascript" src="D3_data_journalism/assets/js/app.js"></script>
</body>
</html>