Skip to content

Latest commit

 

History

History
75 lines (49 loc) · 2.82 KB

Class2.md

File metadata and controls

75 lines (49 loc) · 2.82 KB

Welcome to Day Two! :D

Agenda:

  • questions?
  • css, html, javascript review
  • debugging using the console, console.log(), global variables, etc.
  • finish our first Scatter Plot - add interactions!
  • post to bl.ocks
  • first line chart
  • think about the D3 blueprint
  • discuss readings and videos from last class
  • end of day discussion

Discussion: Review of CSS, HTML, Javascript

Let's talk about the different components of a webpage - CSS, HTML, and Javascript.

What does each do?

Let's examine the code we've already written, find where each of the three exist, and talk about what they're doing.

Add styling and interactions to our scatter plot

First, we will finish up our static scatter plot by:

  • loading in our data with d3.csv
  • formatting our x axis
  • adding gridlines and other stylings
  • adding a title

Instructions here - scroll down to "Day Two".

Then, we'll move on to adding interactions to our plot, which will include

  • hover interactions
  • creating buttons
  • updating data shown
  • utilizing transition, duration, and ease

Instructions here.

Post to bl.ocks

Now, we'll follow these instructions to add our new visualizations to bl.ocks.org

Your first D3.js line chart!

We will follow these instructions to build off our scatter plot to create your first d3.js line chart.

Discussion / Activity: d3.s Blueprint

All d3 plots start similarly. I'll give you some time to think about what these components are. We will discuss as a class and then you will create your own blueprint file.

Discussion: Articles / Videos

Discussion: End of Day Q&A

How was the first day? What questions do you have so far?

What we'll do next class:

  • go over any questions
  • general update pattern
  • first bar chart

Before Next Class

If you're having trouble with HTML, CSS, or Javascript basics, I would recommend doing the corresponding tutorial before next class.