Skip to content

Latest commit

 

History

History
115 lines (81 loc) · 5.1 KB

week08.md

File metadata and controls

115 lines (81 loc) · 5.1 KB

Week 08

  • Project kickoffs
  • Data join, d3-geo
  • Choropleth (adding interaction with D3)

Project plans

data join

Introduction to data-join with d3-selection

Projects

  • Update projects with project teams as the rest of the class does the exercises
  • Exercises are based on the choropleth

Choropleth

Introduction to d3-geo and mapping with D3

Exercises

Work with State Choropleth

  • Exercise #1: Add a circle that follows the mouse
  • Exercise #2: Update the styling to highlight the state that's being moused over
  • Exercise #3: Tooltip
    • Add a tooltip that shows the data value as it follows the mouse
    • Get hints from here: Plot Tooltip
    • You'll need to add a text element, and get the data from the selected element
  • Solutions are here: choropleth.md

Topojson

We're using topojson data, which has various features in addition to being efficient

d3-geo

d3-geo includes a variety of geospatial tools

Shapefiles

You can stream shapefiles with the shapefile library

d3-tile

With d3-tile, you can easily integrate a variety of map-tile services

  • d3-tile -- the collection
  • DC schools
    • This has a variety of selectable tile services

Slippy Maps

There are many different slippy map libraries -- the most popular open source library is Leaflet.

Assignment 06 solutions

EDA with D3 and Plot -- review the solutions