Coder Social home page Coder Social logo

nsheikh23 / d3-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.78 MB

Constructing an interactive scatter plot displaying relationships between factors shaping people's lives, such as rates of income, obesity, poverty and more.

Home Page: https://nsheikh23.github.io/D3-challenge/

CSS 8.78% JavaScript 68.85% HTML 22.37%
d3-visualization household-income obesity poverty trends lifestyle

d3-challenge's Introduction

D3-challenge

-- Project Status: [Completed]

Newsroom

Project Objective

The purpose of this project is to analyze the current trends shaping people's lives, as well as creating charts, graphs, and interactive elements to help readers understand the findings.

The data set is based on 2014 ACS 1-year estimates from U.S. Census Bueau and the Behavioral Risk Factor Surveillance System: https://factfinder.census.gov/faces/nav/jsf/pages/searchresults.xhtml. The data set includes data on rates of income, obesity, poverty, etc. by state. MOE stands for "margin of error."

Methods Used

  • Data Visualization

Technologies

  • JavaScript
  • D3
  • HTML, CSS

Task

Constructed an interactive scatter plot that displayed relationships between all the factors recorded in the data provided. For details on each scatter point, a tooltip was added.

The plot can be accessed at: https://nsheikh23.github.io/D3-challenge/

7-animated-scatter

8-tooltip

Analysis

Examining the relationship between poverty and lacking healthcare, it is possible to see a positive correlation. As the poverty percentage increases, the higher the percentage of people lacking healthcare. This is as expected because the states that have a lower poverty rate, have a greater population that can work and afford healthcare.

Following up on the last point, if comparing median household income and lacking healthcare, it can be clearly seen that majority of the states that have high uninsured people also have low household income. Very few states actually have high household income as well as uninsured population percentage. That may be due to higher cost of living in the state, however in general it is an indirect relationship thus supporting the point made earlier.

In another interesting analysis, it can be seen from the Age vs. Smokes that majority of the states are clumped together in the middle of chart. This means, most states have relatively similar patterns when it comes to age and smoking. Less than a quarter of each state populate smokes between the median ages of 36-40.

As for obesity, there is a negative correlation with median household income. At first, it seems strange there is a higher obesity percentage with lower household income. However, diving deeper, it kind of makes sense. People with higher household income may be more self conscious about their health, their diet and fitness. They are able to afford eating healthier and joining fitness programs. Whereas, lower income households do not have that luxury, and they can only afford fastfood restaurants and lower quality foods that lead to obesity. Moreover, they may not have the time or financial means to think of fitness as they are always focused on surviving.

d3-challenge's People

Contributors

nsheikh23 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.