Skip to content

Latest commit

 

History

History

Lab 6 - Enter, Update, Exit, Transitions

NOTE: videos and material in this lab is ACCIDENTALLY labelled "Lab 7". Please apologize.

today's agenda

  • In the lab, we are building this visualization:
    • preview
  • Please download the Exercise Files, then follow these tutorials:
    • Part 1- Data & Setup (video 28:17)
    • Part 2 - Enter, Update, Exit (video 23:17)
    • Part 3 - Transitions (video 9:35)
    • Part 4 - Data Keys (video 7:41)

coding exercise:

  • watch the first 5 minutes of this video.
  • this weeks assignment is to rebuild the visualization from the video.
  • download the Exercise Code first.
  • study the below overview of what you will find in the code.
  • Apply the learning from above video tutorials to visualize the data dynamically.
    • You will mostly be working in section "C" of the code (as labelled in screenshot below).
    • section A is also good to study because you should use the scales for datapoints x postition, y position and radius (if you do circles).
    • the drawViz function (section C) is being called every second. Inside it, you can use the array currentYearData - at every function call it carries a new set of data (of that current year).
    • you will need to:
      • bring the datapoints onto the page.
      • define what should happen with entering elements
      • define what should happen with exiting elements
  • highlevel overview of the code:
    • overview
  • this is would your result may look like - but do feel free to style things differently and be creative in your design:
    • overview