Skip to content

Instantly share code, notes, and snippets.

View niallmackenzie's full-sized avatar

niallmackenzie

View GitHub Profile
@niallmackenzie
niallmackenzie / index.html
Last active October 22, 2015 12:19
Population Bubbles Test
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.municipality {
fill: #ccc;
}
.bubble {
fill: #7BB300;
@niallmackenzie
niallmackenzie / index.html
Last active October 22, 2015 12:19
Zoom and Pan Test
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.overlay {
fill: none;
pointer-events: all;
}
.municipality {
@niallmackenzie
niallmackenzie / index.html
Last active October 22, 2015 12:20
Rollover Test
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.municipality {
fill: #ccc;
}
.municipality :hover {
fill: orange;
@niallmackenzie
niallmackenzie / README.md
Last active October 7, 2015 11:07
Project to Bounding Box Test

Trying to center a GeoJSON map in D3 by trial and error is hideous. In response to a question on Stackexchange, Mike posted a method of projecting to a GeoJSON object. It rocks. The map shows the municipality of Jönköping, part of Jönköpings Län in Sweden.

@niallmackenzie
niallmackenzie / README.md
Last active September 21, 2015 16:07
SIMD 2012 (Perth & Kinross)

Scottish Index of Multiple Deprivation (SIMD) data for Perth and Kinross, Scotland.

Data Zones and Intermediate Zones are two new, small-area statistical geographies introduced by Scottish Neighbourhood Statistics (SNS) to build on the well-established postcode and census geographies. Data Zones have a population of between 500 and 1,000 household residents. Intermediate Zones are aggregations of data zones within local authorities and contain between 2,500 and 6,000 people. Data Zones and Intermediate Zones are now the key geographies for disseminating government statistics and for supporting policy making in Scotland.

Click to zoom in on a data zone, click again to zoom out. Overall deprivation is shown by default. Individual SIMD domains can be selected using the drop down menu.

@niallmackenzie
niallmackenzie / README.md
Last active September 21, 2015 16:04
SIMD 2012 (Glasgow)

Scottish Index of Multiple Deprivation (SIMD) data for the city of Glasgow, Scotland.

Data Zones and Intermediate Zones are two new, small-area statistical geographies introduced by Scottish Neighbourhood Statistics (SNS) to build on the well-established postcode and census geographies. Data Zones have a population of between 500 and 1,000 household residents. Intermediate Zones are aggregations of data zones within local authorities and contain between 2,500 and 6,000 people. Data Zones and Intermediate Zones are now the key geographies for disseminating government statistics and for supporting policy making in Scotland.

Click to zoom in on a data zone, click again to zoom out. Overall deprivation is shown by default. Individual SIMD domains can be selected using the drop down menu.