Companion app for Data Visualization Toolkit
Ruby JavaScript HTML PLpgSQL CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Maryland Residential Sales

This repository provides downloadable code for the book, "Data Visualization Toolkit"; see DataVisualizationToolkit.com.

These example programs are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Creative Commons License

To Run

This is a rails app that runs on Ruby 2.2.3. Clone the repo and run:

  • bundle install
  • bundle exec rake db:create db:migrate

Checkpoints

  • Ch 1, "D3 and Rails"
  • Ch 2, "Transforming Data with ActiveRecord and D3"
  • Ch 5, "Window Functions, Subqueries, and Common Table Expression"
    • Scatter Plot with mortgage pmt (ac2f6c9)
    • row_number() window function in console (not in app)
  • Ch 10, "Making Maps with Leaflet and Rails"
    • Import zip code shapefile and map zip codes (75c7845)
    • Choropleth (6dcae4d)
  • Ch 11, "Querying Geospatial Data"
    • Bounding box in console (not in app)
    • Items near a point in console (not in app)
    • Calculating distance in console (not in app)