Skip to content

Instantly share code, notes, and snippets.

@codetricity
Last active September 16, 2018 16:46
Show Gist options
  • Select an option

  • Save codetricity/a89de10686019195092dfac2d3265982 to your computer and use it in GitHub Desktop.

Select an option

Save codetricity/a89de10686019195092dfac2d3265982 to your computer and use it in GitHub Desktop.

Temperature by Month Pt 1 - Overview and Project Setup

Imgur

Project Goal

Show 12 months of data for each city.

Imgur

Project Learning Objectives

  • time scale and JavaScript date objects
  • d3 time format
  • ordinal scale and d3 color scheme
  • JavaScript if statement - review
  • JavaScript named function - review
    • JavaScript function parameters
  • JSON attribute access using square bracket notation
  • Use d3.csv to convert csv to array of JSON
    • JavaScript promise using .then

Project Setup

Create New D3 Project

  • HTML file with head and body tags
  • js/ directory
    • d3 library
    • main javascript file, main.js
  • in console, test d3.version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment