Repo for the census group.
JavaScript Shell CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.openshift
css
img
js
leaflet
lib
node_modules
public
.gitignore
LICENCE.md
README.md
build.coffee
favicon.ico
index.html
npm_global_module_list
package.json
script.js
server.js

README.md

CodeForBoston-Census

Repo for the census group.

The data views are in the file public/js/models.js to add a new one you need to add another object to the array of the format

{
	name:'string',// required 
	tables:'string',//required, one or more seperated by comma (only one string)
	stringRep:function(a){
				return  parseFloat(a,10).toPrecision(5);
			},//optional defaults to this one, how the value is represented.
	transform:'function'//optional if you need to calculate on multiple values
	flip:boolian//optional if the color scheme should be fliped
}

this version is hosted so it can do more tricks, check it out or checkout the client side only version located on the gh-pages branch

Made for RHoK Boston - Day of Civic Hacking by:

  • Calvin Metcalf
  • Kyle Box
  • Laura Evans