NOTE: videos and material in this lab is ACCIDENTALLY labelled "Lab 7". Please apologize.
- In the lab, we are building this visualization:
- Please download the Exercise Files, then follow these tutorials:
- 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 arraycurrentYearData
- 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:
- this is would your result may look like - but do feel free to style things differently and be creative in your design: