Skip to content

Commit

Permalink
Built mbtaviz from commit 24a1bbe on branch master
Browse files Browse the repository at this point in the history
  • Loading branch information
bcard committed Jul 25, 2014
1 parent 17d6172 commit 53fb7ec
Show file tree
Hide file tree
Showing 229 changed files with 7,265 additions and 327 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "bower_components"
}
103 changes: 100 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,104 @@
Visualizing MBTA Data
=====================

This is the built and minified code for [mbtaviz.github.io](http://mbtaviz.github.io/).
[![mbtaviz.github.io](http://mbtaviz.github.io/media/wide-preview-collage.png)](http://mbtaviz.github.io/)

We have plans to release the rest of the source code and data in the near future.
Check back soon, or contact [Mike Barry on Twitter](https://twitter.com/msb5014) with any questions.
Visualizing MBTA Data is a web based interactive visualization that
provides a glimpse into the performance and behavior of Boston's subway
system.

Check it out: <http://mbtaviz.github.io>.

Also see our [implementation notes](http://mbtaviz.github.io/handout.pdf),
a [blog post](http://mbtaviz.wordpress.com/2014/07/25/website-source-announcement) describing this source code, and
[wiki pages](https://github.com/mbtaviz/mbtaviz.github.io/wiki) with detailed
explanations of the data format for each visualization.

## Quick Start

1. Install [node.js](http://nodejs.org/)
2. Install `bower` to grab dependencies, `less` to compile style sheets and
`http-server` to run the website

`npm install -g bower less http-server`

3. Install dependencies

`bower install`

4. Compile less css files into a single stylesheet

`lessc --clean-css styles/main.less > styles/main.css`

5. Serve up the website

`http-server`

6. Browse to [http://localhost:8080/](http://localhost:8080/) to see the
visualization

## Source Code Layout

data\ post-processed visualization data
scripts\ JavaScript files for the visualization and the website
styles\ less CSS stylesheets and main.css that they are compiled into
media\ Opengraph/Twitter Card images
bower.json bower dependencies
favicon.ico map glyph favicon with animation
handout.pdf design and implementation notes
ie.png website rendered to an image for browsers without svg support
index.html landing page
README.md README file that appears on the website's github page

## Regenerating Stylesheets

The visualization loads `main.css` which is generated from all of the less
files in the `styles/` directory. If you change any of the less stylesheets
use the less compile to regenerate `main.css` as described above:

lessc --clean-css styles/main.less > styles/main.css

For more information see <http://lesscss.org>.

## Raw Data

The raw data is available from two sources. A zipped csv file with per-minute
turnstile entry and exit counts from each station is made available with
permission from the MBTA:

<https://www.dropbox.com/s/vv2l1iehhx3wkfx/StationTurnstileCountsByMinute_2014_02-01--03-02.csv.zip>

NOTE: some stations don't accurately measure turnstile exits, so entry counts
will tend to be more accurate.

Also the realtime subway and alert JSON files collected for the month of
February are available here:

<https://www.dropbox.com/s/8qqo1x6h93v7cv4/raw_subway_data.zip>

They are stored in hourly gzipped files in the following format:
`subway-line/yyyy/mm/dd/hh/data.json.gz`
where each line of the ungzipped file contains a JSON blob polled from the
MBTA's realtime feed described
[here](http://www.mbta.com/rider_tools/developers/). All times use Eastern
Standard time zone.

## Creators

**Mike Barry**

- <https://github.com/msbarry>
- <https://twitter.com/msb5014>

**Brian Card**

- <https://github.com/bcard>

## License

Copyright 2014 Michael Barry and Brian Card.

JavaScript source files and less stylesheets released under the MIT License.

All other files including this README, the main web page, and images made available under
[Github's terms of service](https://help.github.com/articles/open-source-licensing)
13 changes: 13 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "mbtaviz",
"version": "0.0.0",
"dependencies": {
"d3": "~3.4.1",
"d3-tip": "~0.6.4",
"underscore": "~1.6.0",
"moment": "~2.6.0",
"es6-shim": "~0.10.1",
"jquery": "~2.1.0",
"bootstrap": "~3.1.1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions bower_components/d3-tip/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@
},
"_source": "git://github.com/Caged/d3-tip.git",
"_target": "~0.6.4",
"_originalSource": "d3-tip",
"_direct": true
"_originalSource": "d3-tip"
}
File renamed without changes.
8 changes: 4 additions & 4 deletions bower_components/d3/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3",
"version": "3.4.6",
"version": "3.4.9",
"main": "d3.js",
"scripts": [
"d3.js"
Expand All @@ -22,11 +22,11 @@
"test"
],
"homepage": "https://github.com/mbostock/d3",
"_release": "3.4.6",
"_release": "3.4.9",
"_resolution": {
"type": "version",
"tag": "v3.4.6",
"commit": "5d58ae83001016f6ad3c30191433bd6941498332"
"tag": "v3.4.9",
"commit": "ba739a0c281a7319cb1383b0496d00f1d0e0a614"
},
"_source": "git://github.com/mbostock/d3.git",
"_target": "~3.4.1",
Expand Down
4 changes: 4 additions & 0 deletions bower_components/d3/.spmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bin
lib
src
test
2 changes: 1 addition & 1 deletion bower_components/d3/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3",
"version": "3.4.6",
"version": "3.4.9",
"main": "d3.js",
"scripts": [
"d3.js"
Expand Down
Loading

0 comments on commit 53fb7ec

Please sign in to comment.