A visualization of NZ's stolen vehicles, using d3.js, coffeescript, and backbone.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
backbone-min.js
bootstrap-popover.js
bootstrap-twipsy.js
buildjs.sh
d3.csv.min.js
d3.min.js
d3.time.min.js
index.haml
index.html
jquery-1.7.1.min.js
main.coffee
main.js
stolenvehicles2.csv
underscore-min.js

README.md

This is the source code for http://markhansen.co.nz/stolen-vehicles-pt2/

How do you get this up and running?

Run a local web server in the folder. Unfortunately you can't just open it using file://, because it uses AJAX to fetch the stolen vehicle data.

$ cd stolen-vehicles-pt2
$ python -m SimpleHTTPServer

And browse to localhost:8000/index.html.

Most of the meat of the code is in main.coffee and index.haml - the other stuff is libraries. Excuse the lack of comments - this code was written for a one-off blog post, not to be maintained. :)

The javascript is mostly compiled from coffeescript - feel free to edit either. The same goes for the HTML compiled from Haml. A simple build file is included to concatenate all the data together, rough 'n' ready. :)