Skip to content

Instantly share code, notes, and snippets.

View tnightingale's full-sized avatar

Tom Nightingale tnightingale

  • Test Double
  • Vancouver, Canada
View GitHub Profile
@tnightingale
tnightingale / README.md
Last active October 25, 2019 16:48
Leaflet + D3js: Hexbin

This hexbin map shows the proximity of earthquakes (magnitude 3.0 or greater) in the Canterbury region of New Zealand during the month of September, 2010.

The map is created using Leaflet. The hexbin layer is a custom Leaflet layer which uses d3js to generate a svg hexbin overlay. The source for the custom leaflet layer is viewable here.

Earthquake data sourced from GeoNet.

@tnightingale
tnightingale / README.md
Last active December 11, 2015 23:29
Christchurch Earthquakes, 2010

Hexbinning earthquakes (magnitude 3.0 or greater) in the Canterbury region of New Zealand during the month of September, 2010.

Earthquake data sourced from GeoNet.

@tnightingale
tnightingale / README.md
Last active December 12, 2015 00:08
Canada Character Distribution

Chrome users: If the animation doesn't work for you, try viewing the cartogram in its own window by clicking: "Open in new window".

This cartogram scales the area of Canada's provinces and territories by the number of characters used in the name of the province or territory.

Built with D3js and Cartogram.js. Province and territory data obtained from the Government of Canada's Open Data Portal.

@tnightingale
tnightingale / README.md
Last active January 27, 2016 05:50
Scaling Canada by Area Population
@tnightingale
tnightingale / README.md
Last active December 27, 2022 15:16
Canada Population
@tnightingale
tnightingale / README.md
Last active December 12, 2015 03:08
Non-contiguous cartogram: Canada
@tnightingale
tnightingale / README.md
Last active October 25, 2019 16:51
Christchurch Earthquakes

This map shows earthquakes (magnitude 3.0 or greater) that occurred in the Canterbury region of New Zealand during the month of September, 2010.

The map is created using Leaflet. The earthquake layer is a custom Leaflet layer which uses d3js to generate a svg overlay.

Earthquake data sourced from GeoNet.

@tnightingale
tnightingale / README.md
Last active December 12, 2015 04:08
Graffiti in Vancouver

Hexbin layer showing locations of sites with graffiti as identified by Vancouver City staff.

Data from the City of Vancouver's Open Data Catalogue.

@tnightingale
tnightingale / LICENSE.txt
Last active October 25, 2019 16:50
Christchurch 2010 Timeline
The MIT License (MIT)
Copyright (c) 2014 Tom Nightingale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: