forked from mbtaviz/mbtaviz.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Built mbtaviz from commit 24a1bbe on branch master
- Loading branch information
Showing
229 changed files
with
7,265 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bin | ||
lib | ||
src | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
Oops, something went wrong.