Assigned: Wednesday, Mar 1, 2017
Due: Friday, Mar 3, 2017 at noon
Collaboration: You may choose your own partner(s) for this lab. Please work in groups of two or three.
In this lab, you will combine the basic D3 updates we learned in class on Monday with transitions to build a live view of edits on Wikipedia. We’ll be using the pubnub feed again, which is all set up in the starter code for this lab. Your task is to respond to each update message with the following steps:
<div> element on the page in a random location.<div>, add a clickable link to the Wikipedia page that was edited.You can find the starter code on GitHub at grinnell-cs/datavis-wikipedia-updates. This starter code includes a standard HTML template, a CSS file that defines two potentially useful rules, and a JavaScript file that subscribes to the Wikipedia pubnub stream. Make a fork of this repository and add your lab partner as a collaborator. When you are finished with the lab, submit a pull request to turn in your work.
The process you follow to finish the lab is largely up to you, but the following hints should be helpful:
left and top CSS properties in the style attribute of each link box.style attribute of the tag you can position each <div> independently.opacity CSS property to make elements fade out.Math.random().window.innerHeight and window.innerWidth..remove() method in D3.transition() will delete the element from the page after the transition completes..duration() D3 method to set the time a transition will take.