Giter Site home page Giter Site logo

jiuhe2020 / d3-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 302 KB

This project utilizes D3 techniques to analyze the current trends shaping people's lives, as well as creating charts, graphs, and interactive elements to help readers understand the findings.

CSS 10.70% JavaScript 69.94% HTML 19.37%
d3 javascript d3-tip

d3-challenge's Introduction

Data Journalism and D3

Journalism

Deployment Link

https://jiuhe2020.github.io/D3-challenge/

Challenge Instructions

This project utilizes D3 techniques 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, including data on rates of income, obesity, poverty, etc. by state. MOE stands for "margin of error."

D3 Dabbler

A scatter plot was created between two of the data variables such as Healthcare vs. Poverty, which represents each state with circle elements.

  • The data was imported from data.csv by using the d3.csv function
  • Each circle included state abbreviations
  • Axes and labels were created and situated to the left and bottom of the chart

BONUS: Incorporate d3-tip

Why make a static graphic when D3 lets you interact with your data?

  • Additional labels were plotted in the scatter plot and click events were associated with them, so that the users can decide which data to display
  • The transitions were animated for the circles' locations as well as the range of the axes
  • Tooltips were added to the circles and each tooltip can be displayed with the data that the user has selected


Copyright

Jiuhe Zhu © 2020. All Rights Reserved.

d3-challenge's People

Contributors

jiuhe2020 avatar

Watchers

 avatar

Forkers

jl-horton

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.