CodeForBoston-Census

Repo for the census group.

MIT License

Stars
11
Committers
4

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