Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 1.01 KB

README.md

File metadata and controls

58 lines (49 loc) · 1.01 KB

D3 Choropleth of the noisiest neighborhoods in NYC.

** Update - Now with heating and graffiti data

Live Demo - http://noisynyc.dtostillwell.com/

alt tag alt tag

Run

You will need flask > 0.10.1

python routes.py

Built using D3. Foundation CSS for styling

Data

If you provide an object with values associated with zipcodes you can map you're own values.

var noiseData = {
  "10032": 264,
  "10003": 197,
  "10012": 187,
  "10002": 177,
  "10013": 167,
  "10016": 155,
  "10023": 155,
...
}

You can have multiple datasets. You also need to pass in default color scheme and a max domain range value

var dataSets = {
	"noise": {
		"data": noiseData,
		"color": "Blues",
		"maxDomain": 425
	},
	"heat": {
		"data": heatData,
		"color": "Reds",
		"maxDomain": 375
	},
	"graffiti": {
		"data": graffitiData,
		"color": "RdPu",
		"maxDomain": 30
	}
};