cuthchow / college-majors-visualisation

Interactive Data Visualisation of U.S College Majors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

college-majors-visualisation

preview_image

An interactive, scrollable visualisation of College Majors in the United States, built using D3.js. The Goal of this project was to learn how to create a narrative visualisation which changed state based on the user's scroll position on the page. I utilised several resources to learn the necessary techniques, most useful of them being Jim Vallandingham's article on the topic.

A full write-up detailing how this project was created can be found at my blog here

The most useful techniques I learned in this project include:

  • Using .transition() before every attribute change to allow interruptable animations
  • Using named transitions for the animations which must be completed
  • Using .raise() to reorder elements - Will append current selection to the end of the parent element
  • Creating all elements initially, and using the opacity attribute to bring them in and out of view
  • Using d3.dispatch() to generate events, which dispatches events based on the user's scroll position

About

Interactive Data Visualisation of U.S College Majors


Languages

Language:Jupyter Notebook 98.0%Language:JavaScript 1.1%Language:R 0.5%Language:HTML 0.4%Language:CSS 0.1%