Build an interactive scatter plot to explore health risks facing particular demographics using D3 techniques.
-
Using the D3 techniques create a scatter plot between health risks (obesity, smokes, lacks healthcare and poverty, age and household income)
-
Each state is represented with circle elements that include state abbreviations in the circles.
-
Add 3 risk factors to each axis which when clicked will display appropriate data.
-
Tooltips added to circles which display the data that has been selected.
People living in states with a higher poverty rate have higher health risks. States with a relatively higher poverty rate have more uninsured. States with a higher poverty rate also have more people in the state who smoke and a higher obesity rate. This is not surprising given the lack of access to healthcare and probably healthy and cheap food options. The outlier is Texas where the poverty rate is about average but it has the highest percentage of uninsured.
The chart shows a slight positive correlation between Age and the percentage of people who smoke. States with a lower median age have a lower percentage of smokers compared to states with a higher median age. There also appears to be a cluster of higher obesity in the 36-40 age group. Utah has the youngest median age and the lowest percentage of people who smoke. The state also has a lower obesity rate in comparison to the rest of the states. The median age of a majority of the states lies in the 36 - 40 range.
States with a lower median household income have more health risks. The percentage of obese people and smokers is much higher in states with lower income. This is probably due to the fact that the percentage of people with healthcare is also lower in those states.
- Javascript
- HTML/ CSS
- Bootstrap
- D3
2014 ACS 1-year estimates from the US Census Bureau
Created by @deepavadakan