Git Product home page Git Product logo

sfrentsvisualreport's Introduction

SF Rents - A Visual Report

This is an experiment in D3.js and Three.js.

In it, I have created a 3D map of San Francisco delineated by zip code, with the third dimension (height) dictated by the zip code's ZRI (Zillow Rent Index). The ZRI is a proprietary estimation of the average rental unit in an area over all units, and serves as a general barometer for a neighborhood's rental cost (disclaimer: do not take this data to heart - this project is more about data visualizatio that data analysis). I created this map using the twin technologies of d3.js and Three.js. d3 was initially used for parsing CSV files for rental data and reading topoJSON files for geographical zip boundaries and creating SVG paths for each zip code. I then used Three.js to project these SVG paths to 3D geometries and display the results.

I started from this example, which creates a similar map for Romania (albeit with different boundaries and metrics). Other useful d3 tutorials were found at d3 creator Mike Bostock's website.

To use my app, simply clone the repo, navigate to the directory and open a server (use http-server or python -m SimpleHTTPServer). Then, in your browser, go to localhost at the port you specified (8000 by default),open up sfrents.html, and pick a month (no data will appear until you do). Use mouse click-and-drag to rotate, and scroll to zoom. If you would like to contribute, I'd love to see your forks, issues, and pull requests.

Some coming TODOS:

  • Fix initial SF orientation - it's currently laying on its side, and has to be dragged into a better position with the mouse
  • Deploy the data (web framework?)

A screencast of the technology can be found here.

Screencast Cliffs Notes

  1. 0:00-4:25: Top-down look at technology, motivations, background etc.
  2. 4:25-9:15: Demo
  3. 9:16-12:11: Overview of approach, d3, three
  4. 12:12-24:54: LOC. Functions. The nitty gritty

sfrentsvisualreport's People

Contributors

kkennis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.