Skip to content

Instantly share code, notes, and snippets.

@BobHarper1
Last active November 25, 2016 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BobHarper1/a78de07563f72826d56d84050894682f to your computer and use it in GitHub Desktop.
Save BobHarper1/a78de07563f72826d56d84050894682f to your computer and use it in GitHub Desktop.
Calendar of collisions occurring within 100m of schools on weekdays, 2005-2014
date number
2005-01-04 1
2005-01-11 1
2005-01-12 1
2005-01-18 1
2005-01-21 1
2005-01-27 1
2005-02-02 1
2005-02-02 1
2005-02-03 1
2005-02-03 1
2005-02-04 1
2005-02-04 1
2005-02-08 1
2005-02-09 1
2005-02-11 1
2005-02-11 1
2005-02-11 1
2005-02-15 1
2005-02-16 1
2005-02-24 1
2005-02-24 1
2005-02-25 1
2005-02-25 1
2005-02-25 1
2005-02-28 1
2005-03-02 1
2005-03-04 1
2005-03-07 1
2005-03-09 1
2005-03-09 2
2005-03-10 2
2005-03-14 1
2005-03-18 1
2005-03-21 1
2005-03-21 1
2005-03-22 2
2005-03-23 1
2005-04-01 1
2005-04-12 1
2005-04-15 1
2005-04-15 1
2005-04-18 1
2005-04-19 1
2005-04-19 1
2005-04-19 1
2005-04-21 1
2005-04-25 1
2005-04-27 1
2005-04-27 1
2005-04-28 1
2005-04-29 1
2005-05-02 1
2005-05-03 1
2005-05-04 1
2005-05-05 1
2005-05-09 2
2005-05-11 1
2005-05-13 1
2005-05-17 1
2005-05-19 2
2005-05-20 1
2005-05-23 1
2005-05-23 1
2005-05-26 1
2005-05-27 1
2005-05-30 1
2005-05-31 1
2005-06-01 1
2005-06-02 1
2005-06-06 1
2005-06-07 2
2005-06-07 1
2005-06-08 1
2005-06-09 1
2005-06-09 1
2005-06-17 1
2005-06-22 1
2005-06-22 1
2005-06-27 1
2005-06-28 1
2005-06-28 1
2005-07-08 1
2005-07-20 1
2005-07-26 1
2005-07-27 1
2005-08-10 1
2005-08-10 1
2005-08-12 2
2005-08-15 1
2005-08-17 1
2005-08-19 1
2005-08-19 1
2005-08-31 1
2005-08-31 1
2005-09-01 1
2005-09-02 1
2005-09-07 1
2005-09-09 1
2005-09-15 1
2005-09-19 1
2005-09-19 1
2005-09-21 2
2005-09-23 1
2005-09-23 1
2005-09-26 2
2005-09-27 1
2005-10-05 1
2005-10-05 1
2005-10-06 1
2005-10-12 2
2005-10-17 1
2005-10-18 1
2005-10-19 1
2005-10-20 1
2005-10-20 1
2005-10-21 1
2005-10-21 1
2005-10-24 1
2005-10-31 1
2005-11-04 1
2005-11-04 1
2005-11-07 1
2005-11-09 1
2005-11-09 1
2005-11-10 2
2005-11-11 1
2005-11-15 2
2005-11-15 1
2005-11-18 1
2005-11-18 1
2005-11-23 1
2005-11-23 1
2005-11-30 2
2005-12-06 1
2005-12-06 1
2005-12-07 1
2005-12-12 1
2005-12-14 1
2005-12-14 1
2005-12-15 1
2005-12-16 1
2005-12-19 2
2005-12-20 1
2005-12-23 1
2005-12-23 1
2006-01-02 2
2006-01-06 1
2006-01-06 1
2006-01-11 1
2006-01-16 1
2006-01-17 1
2006-01-27 1
2006-02-02 1
2006-02-07 2
2006-02-08 1
2006-02-08 1
2006-02-13 1
2006-02-13 2
2006-02-17 1
2006-02-22 1
2006-03-03 1
2006-03-07 1
2006-03-09 1
2006-03-10 1
2006-03-14 1
2006-03-20 1
2006-03-24 1
2006-03-31 1
2006-04-03 1
2006-04-03 1
2006-04-05 1
2006-04-06 1
2006-04-07 2
2006-04-10 2
2006-04-11 1
2006-04-11 1
2006-04-12 1
2006-04-14 1
2006-04-20 1
2006-04-28 1
2006-04-28 2
2006-05-01 1
2006-05-02 1
2006-05-02 1
2006-05-03 1
2006-05-08 1
2006-05-08 1
2006-05-09 1
2006-05-10 2
2006-05-15 1
2006-05-15 1
2006-05-18 1
2006-05-19 1
2006-05-24 1
2006-05-26 1
2006-05-30 1
2006-05-30 1
2006-06-01 1
2006-06-02 1
2006-06-02 1
2006-06-06 1
2006-06-09 2
2006-06-09 1
2006-06-15 1
2006-06-19 1
2006-06-20 2
2006-06-22 1
2006-06-28 1
2006-07-18 1
2006-07-24 1
2006-07-25 1
2006-08-02 1
2006-08-04 1
2006-08-07 1
2006-08-16 1
2006-08-18 1
2006-08-23 1
2006-08-24 1
2006-08-25 1
2006-08-30 1
2006-08-31 1
2006-09-08 1
2006-09-08 1
2006-09-11 1
2006-09-13 1
2006-09-15 1
2006-09-18 1
2006-09-20 1
2006-09-21 1
2006-09-22 1
2006-09-26 1
2006-10-02 2
2006-10-02 2
2006-10-02 1
2006-10-03 1
2006-10-05 1
2006-10-06 1
2006-10-09 1
2006-10-11 1
2006-10-12 1
2006-10-13 1
2006-10-16 1
2006-10-17 1
2006-10-17 1
2006-10-17 1
2006-10-23 1
2006-10-23 1
2006-10-25 1
2006-10-26 1
2006-10-26 2
2006-10-27 1
2006-10-31 2
2006-11-01 1
2006-11-03 1
2006-11-06 1
2006-11-09 1
2006-11-10 1
2006-11-13 2
2006-11-15 1
2006-11-16 1
2006-11-16 1
2006-11-17 1
2006-11-20 1
2006-11-20 1
2006-11-24 1
2006-11-24 1
2006-11-24 1
2006-11-24 1
2006-11-27 1
2006-11-29 1
2006-11-30 1
2006-11-30 1
2006-12-01 1
2006-12-05 1
2006-12-05 1
2006-12-06 2
2006-12-07 1
2006-12-08 1
2006-12-12 1
2006-12-14 1
2006-12-18 1
2006-12-18 1
2006-12-20 1
2006-12-25 1
2006-12-28 1
2006-12-28 1
2007-01-01 1
2007-01-02 2
2007-01-05 1
2007-01-10 3
2007-01-16 1
2007-01-16 1
2007-01-17 1
2007-01-17 1
2007-01-19 1
2007-01-25 1
2007-01-30 1
2007-01-31 1
2007-02-01 1
2007-02-05 1
2007-02-06 1
2007-02-06 1
2007-02-07 1
2007-02-15 1
2007-02-19 1
2007-02-22 1
2007-02-22 1
2007-02-23 1
2007-02-23 1
2007-02-26 1
2007-02-27 2
2007-02-28 1
2007-03-01 1
2007-03-01 1
2007-03-06 1
2007-03-06 1
2007-03-08 1
2007-03-12 1
2007-03-12 1
2007-03-13 1
2007-03-14 1
2007-03-14 2
2007-03-16 1
2007-03-21 1
2007-03-23 1
2007-03-29 1
2007-04-02 3
2007-04-04 1
2007-04-06 2
2007-04-13 1
2007-04-19 1
2007-04-23 1
2007-04-25 1
2007-04-26 4
2007-04-27 3
2007-04-30 1
2007-05-02 2
2007-05-03 1
2007-05-10 1
2007-05-11 2
2007-05-15 1
2007-05-16 1
2007-05-17 1
2007-05-18 1
2007-05-21 1
2007-05-22 1
2007-05-24 1
2007-05-29 1
2007-05-30 1
2007-06-01 1
2007-06-04 4
2007-06-05 2
2007-06-07 1
2007-06-08 3
2007-06-11 2
2007-06-12 2
2007-06-14 3
2007-06-15 1
2007-06-19 4
2007-06-21 1
2007-06-22 1
2007-06-26 1
2007-06-28 1
2007-07-05 1
2007-07-06 1
2007-07-10 1
2007-07-11 1
2007-07-16 1
2007-07-17 2
2007-07-18 2
2007-07-20 1
2007-07-26 1
2007-08-01 1
2007-08-03 2
2007-08-06 1
2007-08-08 1
2007-08-09 2
2007-08-15 2
2007-08-21 1
2007-08-23 1
2007-08-30 1
2007-08-31 2
2007-09-03 1
2007-09-04 1
2007-09-06 1
2007-09-07 1
2007-09-10 3
2007-09-12 2
2007-09-14 1
2007-09-17 1
2007-09-20 1
2007-09-24 1
2007-09-27 2
2007-09-28 1
2007-10-01 2
2007-10-09 2
2007-10-10 2
2007-10-17 4
2007-10-19 1
2007-10-22 1
2007-10-23 2
2007-10-24 2
2007-10-25 1
2007-10-26 1
2007-11-02 2
2007-11-07 2
2007-11-08 1
2007-11-12 3
2007-11-13 2
2007-11-14 1
2007-11-15 1
2007-11-16 2
2007-11-19 2
2007-11-20 2
2007-11-21 1
2007-11-26 1
2007-11-27 2
2007-11-28 1
2007-11-29 1
2007-11-30 1
2007-12-04 1
2007-12-05 1
2007-12-07 3
2007-12-12 1
2007-12-20 1
2007-12-21 2
2007-12-27 1
2008-01-04 1
2008-01-07 1
2008-01-14 1
2008-01-15 1
2008-01-15 1
2008-01-16 1
2008-01-16 1
2008-01-21 1
2008-01-21 1
2008-01-21 1
2008-01-22 1
2008-01-23 1
2008-01-23 1
2008-01-24 1
2008-01-25 1
2008-01-28 1
2008-01-30 1
2008-02-01 1
2008-02-01 2
2008-02-04 1
2008-02-06 1
2008-02-06 1
2008-02-07 1
2008-02-08 1
2008-02-08 1
2008-02-11 1
2008-02-14 1
2008-02-14 1
2008-02-15 1
2008-02-19 1
2008-02-21 1
2008-02-21 1
2008-02-22 1
2008-02-26 2
2008-02-27 1
2008-02-27 1
2008-03-03 2
2008-03-03 1
2008-03-07 1
2008-03-14 1
2008-03-14 1
2008-03-20 1
2008-03-24 1
2008-03-24 1
2008-04-01 1
2008-04-01 1
2008-04-01 1
2008-04-02 1
2008-04-02 1
2008-04-03 1
2008-04-04 1
2008-04-04 1
2008-04-10 1
2008-04-11 1
2008-04-17 1
2008-04-17 1
2008-04-22 2
2008-04-22 1
2008-04-23 1
2008-04-24 1
2008-04-25 1
2008-04-25 1
2008-04-25 2
2008-04-30 1
2008-04-30 1
2008-05-02 1
2008-05-02 1
2008-05-02 1
2008-05-06 1
2008-05-06 1
2008-05-06 1
2008-05-06 1
2008-05-07 1
2008-05-08 1
2008-05-14 1
2008-05-14 2
2008-05-15 1
2008-05-15 1
2008-05-19 1
2008-05-23 1
2008-05-23 1
2008-05-23 1
2008-05-26 1
2008-05-27 1
2008-05-27 1
2008-05-27 2
2008-05-28 1
2008-06-02 1
2008-06-02 2
2008-06-06 1
2008-06-06 1
2008-06-09 1
2008-06-10 2
2008-06-13 1
2008-06-17 1
2008-06-17 1
2008-06-18 1
2008-06-18 1
2008-06-19 2
2008-06-23 1
2008-06-24 1
2008-07-01 1
2008-07-04 1
2008-07-04 1
2008-07-04 1
2008-07-08 1
2008-07-09 1
2008-07-10 1
2008-07-11 1
2008-07-15 1
2008-07-16 1
2008-07-18 1
2008-07-18 1
2008-07-24 1
2008-07-25 1
2008-07-31 1
2008-08-01 1
2008-08-04 1
2008-08-06 1
2008-08-06 1
2008-08-08 2
2008-08-11 1
2008-08-12 1
2008-08-15 1
2008-08-19 2
2008-08-20 1
2008-08-22 1
2008-08-26 1
2008-08-29 1
2008-08-29 1
2008-09-01 1
2008-09-04 1
2008-09-09 1
2008-09-11 1
2008-09-11 2
2008-09-16 1
2008-09-26 2
2008-09-29 1
2008-09-30 1
2008-10-01 1
2008-10-03 1
2008-10-03 1
2008-10-06 1
2008-10-07 1
2008-10-08 1
2008-10-13 1
2008-10-14 1
2008-10-16 1
2008-10-16 1
2008-10-17 1
2008-10-17 1
2008-10-17 1
2008-10-20 1
2008-10-20 1
2008-10-22 1
2008-10-23 1
2008-10-23 1
2008-10-30 1
2008-11-04 1
2008-11-05 2
2008-11-06 1
2008-11-06 1
2008-11-07 1
2008-11-07 1
2008-11-07 1
2008-11-07 1
2008-11-10 1
2008-11-11 1
2008-11-12 2
2008-11-13 1
2008-11-13 2
2008-11-13 2
2008-11-17 1
2008-11-18 1
2008-11-18 1
2008-11-18 1
2008-11-19 1
2008-11-20 2
2008-11-21 1
2008-11-21 1
2008-11-28 1
2008-12-01 1
2008-12-02 1
2008-12-03 1
2008-12-05 1
2008-12-05 1
2008-12-08 1
2008-12-09 1
2008-12-09 1
2008-12-10 1
2008-12-10 1
2008-12-12 2
2008-12-12 1
2008-12-15 1
2008-12-15 1
2008-12-15 2
2008-12-16 1
2008-12-16 2
2008-12-17 1
2008-12-17 1
2008-12-17 1
2008-12-18 1
2008-12-19 2
2008-12-22 1
2008-12-24 1
2008-12-26 1
2008-12-29 2
2008-12-29 1
2009-01-05 1
2009-01-05 1
2009-01-07 1
2009-01-07 1
2009-01-08 1
2009-01-09 1
2009-01-12 1
2009-01-12 1
2009-01-12 1
2009-01-16 1
2009-01-19 1
2009-01-20 2
2009-01-21 1
2009-01-22 1
2009-01-22 1
2009-01-23 1
2009-01-23 1
2009-01-27 1
2009-01-28 1
2009-01-29 1
2009-01-30 1
2009-02-02 1
2009-02-02 1
2009-02-03 1
2009-02-09 1
2009-02-12 1
2009-02-12 1
2009-02-13 2
2009-02-16 1
2009-02-17 1
2009-02-23 1
2009-02-24 1
2009-02-26 1
2009-02-27 1
2009-03-02 1
2009-03-02 1
2009-03-02 1
2009-03-04 1
2009-03-05 1
2009-03-05 1
2009-03-06 1
2009-03-09 2
2009-03-09 1
2009-03-11 1
2009-03-12 1
2009-03-12 2
2009-03-12 1
2009-03-13 1
2009-03-17 1
2009-03-19 1
2009-03-19 2
2009-03-20 1
2009-03-25 1
2009-03-26 1
2009-03-26 2
2009-03-26 1
2009-03-30 1
2009-03-30 1
2009-03-30 1
2009-03-31 1
2009-04-01 1
2009-04-03 1
2009-04-03 1
2009-04-06 1
2009-04-08 1
2009-04-10 1
2009-04-10 1
2009-04-20 1
2009-04-21 1
2009-04-22 1
2009-04-30 1
2009-05-07 1
2009-05-12 1
2009-05-12 1
2009-05-12 1
2009-05-15 1
2009-05-15 1
2009-05-15 1
2009-05-15 2
2009-05-18 1
2009-05-19 2
2009-05-22 1
2009-05-25 1
2009-05-27 3
2009-05-27 2
2009-06-04 1
2009-06-04 1
2009-06-04 1
2009-06-04 1
2009-06-17 1
2009-06-17 1
2009-06-17 1
2009-06-17 1
2009-06-22 1
2009-06-22 1
2009-06-23 1
2009-06-29 1
2009-06-30 1
2009-07-01 1
2009-07-06 2
2009-07-07 2
2009-07-08 2
2009-07-17 1
2009-07-17 2
2009-07-20 1
2009-07-21 1
2009-07-21 1
2009-07-22 1
2009-07-22 1
2009-07-23 1
2009-07-28 1
2009-07-30 2
2009-07-30 1
2009-07-31 2
2009-08-05 1
2009-08-10 1
2009-08-12 1
2009-08-13 1
2009-08-17 1
2009-08-17 1
2009-08-18 1
2009-08-19 1
2009-08-20 1
2009-08-21 1
2009-08-24 1
2009-08-24 1
2009-08-28 1
2009-09-02 1
2009-09-03 1
2009-09-04 1
2009-09-04 2
2009-09-08 2
2009-09-10 1
2009-09-10 1
2009-09-11 1
2009-09-14 1
2009-09-18 1
2009-09-18 2
2009-09-21 1
2009-09-21 2
2009-09-22 1
2009-09-23 1
2009-09-23 1
2009-09-24 1
2009-09-30 1
2009-09-30 1
2009-10-01 1
2009-10-02 1
2009-10-05 1
2009-10-07 1
2009-10-07 1
2009-10-08 1
2009-10-09 1
2009-10-09 3
2009-10-12 2
2009-10-13 1
2009-10-13 1
2009-10-14 2
2009-10-20 1
2009-10-21 1
2009-10-21 1
2009-10-21 1
2009-10-22 1
2009-10-22 1
2009-10-22 1
2009-10-23 1
2009-10-26 1
2009-10-27 1
2009-10-28 1
2009-10-29 2
2009-10-30 1
2009-11-03 1
2009-11-04 1
2009-11-05 1
2009-11-05 1
2009-11-09 1
2009-11-09 1
2009-11-10 1
2009-11-11 1
2009-11-12 1
2009-11-12 2
2009-11-12 1
2009-11-13 1
2009-11-16 1
2009-11-18 1
2009-11-19 1
2009-11-19 1
2009-11-20 1
2009-11-25 1
2009-11-26 1
2009-12-01 1
2009-12-03 2
2009-12-04 2
2009-12-09 2
2009-12-09 1
2009-12-11 1
2009-12-11 1
2009-12-14 1
2009-12-15 1
2009-12-16 1
2009-12-16 1
2009-12-17 1
2009-12-17 1
2009-12-17 1
2009-12-17 1
2009-12-21 1
2009-12-22 1
2009-12-29 1
2010-01-05 1
2010-01-12 1
2010-01-20 1
2010-01-22 1
2010-01-28 1
2010-01-28 1
2010-01-29 1
2010-02-03 1
2010-02-03 1
2010-02-04 1
2010-02-09 1
2010-02-09 1
2010-02-10 1
2010-02-11 1
2010-02-11 1
2010-02-12 1
2010-02-19 1
2010-02-23 1
2010-03-01 1
2010-03-01 1
2010-03-03 1
2010-03-04 1
2010-03-04 1
2010-03-08 1
2010-03-15 1
2010-03-15 1
2010-03-19 1
2010-03-19 1
2010-03-22 1
2010-03-29 1
2010-03-30 2
2010-03-31 1
2010-04-01 2
2010-04-02 1
2010-04-07 1
2010-04-08 1
2010-04-08 1
2010-04-08 1
2010-04-09 1
2010-04-15 1
2010-04-26 1
2010-04-27 1
2010-04-29 1
2010-04-29 1
2010-04-30 2
2010-04-30 1
2010-05-07 1
2010-05-12 1
2010-05-17 1
2010-05-20 1
2010-05-21 1
2010-05-21 1
2010-05-25 1
2010-05-28 2
2010-05-28 2
2010-06-01 2
2010-06-04 2
2010-06-08 2
2010-06-09 1
2010-06-10 1
2010-06-11 1
2010-06-14 1
2010-06-15 1
2010-06-17 1
2010-06-18 1
2010-06-25 1
2010-06-29 1
2010-06-29 1
2010-07-07 1
2010-07-09 1
2010-07-14 1
2010-07-21 1
2010-07-22 2
2010-07-27 1
2010-07-28 1
2010-07-29 1
2010-08-02 1
2010-08-03 1
2010-08-04 1
2010-08-05 1
2010-08-05 1
2010-08-09 1
2010-08-11 3
2010-08-11 1
2010-08-11 1
2010-08-12 1
2010-08-16 1
2010-08-16 1
2010-08-17 1
2010-08-20 1
2010-08-24 1
2010-08-24 1
2010-08-26 1
2010-08-27 1
2010-08-30 1
2010-08-30 1
2010-08-31 2
2010-09-01 1
2010-09-03 1
2010-09-06 1
2010-09-07 1
2010-09-08 1
2010-09-09 1
2010-09-10 1
2010-09-10 1
2010-09-10 1
2010-09-13 1
2010-09-14 1
2010-09-16 1
2010-09-16 1
2010-09-17 1
2010-09-21 1
2010-09-22 1
2010-09-22 1
2010-09-22 1
2010-09-23 2
2010-09-23 2
2010-09-29 1
2010-09-30 1
2010-09-30 1
2010-09-30 1
2010-10-01 1
2010-10-04 2
2010-10-05 1
2010-10-06 2
2010-10-06 1
2010-10-07 1
2010-10-13 2
2010-10-15 1
2010-10-15 1
2010-10-15 1
2010-10-18 1
2010-10-19 1
2010-10-25 1
2010-10-29 1
2010-11-01 2
2010-11-04 1
2010-11-05 1
2010-11-05 1
2010-11-05 1
2010-11-10 1
2010-11-10 1
2010-11-15 1
2010-11-15 1
2010-11-19 1
2010-11-25 1
2010-11-26 3
2010-11-29 1
2010-11-29 1
2010-12-02 1
2010-12-06 2
2010-12-07 1
2010-12-08 1
2010-12-14 1
2010-12-15 1
2010-12-15 1
2010-12-16 1
2010-12-16 1
2010-12-16 1
2010-12-17 2
2010-12-17 1
2010-12-22 1
2010-12-30 1
2011-01-03 1
2011-01-10 1
2011-01-10 1
2011-01-11 1
2011-01-11 1
2011-01-11 1
2011-01-12 1
2011-01-12 1
2011-01-13 2
2011-01-17 1
2011-01-18 1
2011-01-20 1
2011-01-24 2
2011-01-24 1
2011-01-25 1
2011-01-27 1
2011-01-27 1
2011-02-02 1
2011-02-07 1
2011-02-14 1
2011-02-16 1
2011-02-18 1
2011-02-23 1
2011-02-23 1
2011-03-01 1
2011-03-04 1
2011-03-07 1
2011-03-08 1
2011-03-09 1
2011-03-15 1
2011-03-17 1
2011-03-18 1
2011-03-23 1
2011-03-24 1
2011-03-24 1
2011-03-31 1
2011-04-01 1
2011-04-01 1
2011-04-04 1
2011-04-08 1
2011-04-08 1
2011-04-11 1
2011-04-11 1
2011-04-12 1
2011-04-14 1
2011-04-15 1
2011-04-19 2
2011-04-20 1
2011-04-22 1
2011-04-22 1
2011-04-25 1
2011-04-27 1
2011-04-29 1
2011-05-11 1
2011-05-11 1
2011-05-12 1
2011-05-17 1
2011-05-18 1
2011-05-23 1
2011-05-25 1
2011-06-01 1
2011-06-02 3
2011-06-07 1
2011-06-09 1
2011-06-10 1
2011-06-14 1
2011-06-15 1
2011-06-15 1
2011-06-17 1
2011-06-17 1
2011-06-22 1
2011-06-22 1
2011-06-24 1
2011-06-24 1
2011-06-27 1
2011-06-27 2
2011-06-28 1
2011-06-28 1
2011-06-29 1
2011-07-01 2
2011-07-07 1
2011-07-12 1
2011-07-13 1
2011-07-14 1
2011-07-19 1
2011-07-28 1
2011-08-01 1
2011-08-01 1
2011-08-02 1
2011-08-04 1
2011-08-08 1
2011-08-09 1
2011-08-09 1
2011-08-12 1
2011-08-15 1
2011-08-16 1
2011-08-16 1
2011-08-19 2
2011-08-19 1
2011-08-22 1
2011-08-23 1
2011-08-26 1
2011-08-29 1
2011-08-31 2
2011-09-01 1
2011-09-01 1
2011-09-02 2
2011-09-05 1
2011-09-08 1
2011-09-19 1
2011-09-22 2
2011-09-28 1
2011-09-28 1
2011-09-28 2
2011-09-28 1
2011-09-29 1
2011-09-29 1
2011-10-04 1
2011-10-06 1
2011-10-07 1
2011-10-07 2
2011-10-10 1
2011-10-11 1
2011-10-12 1
2011-10-13 1
2011-10-17 1
2011-10-17 1
2011-10-17 1
2011-10-18 1
2011-10-18 1
2011-10-20 1
2011-10-20 1
2011-10-21 1
2011-10-24 1
2011-10-25 1
2011-10-25 1
2011-10-27 1
2011-10-28 1
2011-10-31 1
2011-11-02 1
2011-11-08 1
2011-11-09 1
2011-11-11 1
2011-11-21 1
2011-11-22 1
2011-11-28 1
2011-11-28 1
2011-11-28 2
2011-11-29 1
2011-12-05 1
2011-12-05 1
2011-12-07 1
2011-12-09 1
2011-12-16 1
2011-12-20 1
2011-12-22 2
2011-12-23 1
2011-12-28 1
2012-01-05 1
2012-01-06 2
2012-01-09 1
2012-01-11 1
2012-01-12 1
2012-01-19 1
2012-01-20 1
2012-01-20 1
2012-01-20 1
2012-01-20 1
2012-01-20 1
2012-01-23 2
2012-01-25 2
2012-01-25 1
2012-01-30 1
2012-01-31 1
2012-02-03 1
2012-02-07 1
2012-02-09 2
2012-02-10 1
2012-02-13 1
2012-02-17 1
2012-02-17 1
2012-02-20 1
2012-02-27 1
2012-02-28 2
2012-03-05 1
2012-03-05 1
2012-03-07 1
2012-03-07 1
2012-03-12 1
2012-03-12 1
2012-03-13 1
2012-03-19 1
2012-03-22 1
2012-03-23 1
2012-03-26 1
2012-03-26 2
2012-03-27 1
2012-03-28 1
2012-03-30 1
2012-03-30 1
2012-04-02 1
2012-04-02 1
2012-04-06 1
2012-04-11 1
2012-04-12 1
2012-04-13 1
2012-04-13 2
2012-04-13 1
2012-04-24 1
2012-04-26 1
2012-04-27 1
2012-04-27 1
2012-04-30 1
2012-05-01 1
2012-05-04 1
2012-05-08 1
2012-05-08 1
2012-05-10 1
2012-05-10 1
2012-05-10 1
2012-05-11 1
2012-05-17 1
2012-05-21 1
2012-05-23 1
2012-05-23 1
2012-05-24 2
2012-05-24 1
2012-05-28 1
2012-05-29 1
2012-05-29 1
2012-06-01 1
2012-06-01 1
2012-06-07 1
2012-06-11 1
2012-06-13 1
2012-06-13 1
2012-06-14 1
2012-06-14 1
2012-06-15 2
2012-06-15 1
2012-06-18 1
2012-06-20 1
2012-06-22 1
2012-06-22 1
2012-06-22 1
2012-06-22 1
2012-06-22 1
2012-06-25 1
2012-06-25 1
2012-06-27 2
2012-06-29 2
2012-07-02 1
2012-07-02 1
2012-07-03 1
2012-07-03 1
2012-07-06 1
2012-07-06 1
2012-07-18 2
2012-07-19 1
2012-07-23 1
2012-07-23 1
2012-07-24 1
2012-07-24 1
2012-07-24 1
2012-07-25 1
2012-07-27 1
2012-07-27 1
2012-07-30 1
2012-08-01 1
2012-08-01 1
2012-08-02 1
2012-08-03 2
2012-08-06 1
2012-08-10 1
2012-08-16 1
2012-08-16 1
2012-08-22 1
2012-08-24 1
2012-08-29 1
2012-09-04 1
2012-09-06 1
2012-09-06 1
2012-09-07 1
2012-09-17 1
2012-09-19 1
2012-09-21 1
2012-09-21 1
2012-09-24 1
2012-09-24 1
2012-09-24 1
2012-09-25 1
2012-09-27 1
2012-09-27 1
2012-09-28 1
2012-10-01 1
2012-10-02 1
2012-10-05 1
2012-10-05 2
2012-10-08 1
2012-10-08 1
2012-10-09 1
2012-10-11 1
2012-10-15 1
2012-10-17 1
2012-10-18 1
2012-10-22 1
2012-10-22 1
2012-10-23 1
2012-10-25 1
2012-10-29 1
2012-10-30 1
2012-10-31 1
2012-10-31 1
2012-11-05 1
2012-11-07 1
2012-11-08 1
2012-11-12 1
2012-11-13 1
2012-11-14 1
2012-11-14 2
2012-11-15 1
2012-11-21 1
2012-11-21 1
2012-11-28 1
2012-12-06 1
2012-12-07 1
2012-12-07 1
2012-12-11 1
2012-12-11 1
2012-12-11 1
2012-12-12 1
2012-12-12 1
2012-12-13 1
2012-12-13 1
2012-12-14 1
2012-12-14 1
2012-12-19 2
2012-12-20 1
2012-12-21 2
2012-12-24 1
2012-12-25 1
2013-01-01 1
2013-01-03 1
2013-01-07 1
2013-01-09 1
2013-01-14 1
2013-01-14 2
2013-01-14 1
2013-01-17 2
2013-01-18 1
2013-01-21 1
2013-01-22 1
2013-01-22 1
2013-01-22 1
2013-01-24 1
2013-01-28 1
2013-01-29 1
2013-01-29 1
2013-01-31 1
2013-01-31 2
2013-02-01 1
2013-02-06 1
2013-02-07 1
2013-02-08 1
2013-02-13 2
2013-02-14 1
2013-02-19 1
2013-02-20 1
2013-02-25 1
2013-02-26 2
2013-02-27 2
2013-02-28 1
2013-03-06 1
2013-03-07 1
2013-03-07 1
2013-03-08 1
2013-03-08 1
2013-03-11 1
2013-03-11 1
2013-03-11 1
2013-03-12 1
2013-03-13 1
2013-03-18 1
2013-03-21 1
2013-03-21 1
2013-03-22 1
2013-03-25 2
2013-03-26 1
2013-03-26 1
2013-03-28 1
2013-03-28 1
2013-03-29 1
2013-03-29 1
2013-04-04 1
2013-04-08 1
2013-04-09 1
2013-04-09 1
2013-04-10 1
2013-04-12 1
2013-04-15 2
2013-04-16 1
2013-04-17 1
2013-04-19 1
2013-04-19 1
2013-04-24 1
2013-04-25 1
2013-05-01 1
2013-05-01 1
2013-05-06 1
2013-05-06 1
2013-05-08 1
2013-05-09 1
2013-05-10 1
2013-05-13 1
2013-05-15 1
2013-05-21 2
2013-05-23 2
2013-05-23 1
2013-05-28 1
2013-05-31 1
2013-06-04 1
2013-06-04 1
2013-06-04 1
2013-06-05 1
2013-06-05 1
2013-06-05 1
2013-06-05 1
2013-06-06 1
2013-06-11 1
2013-06-13 1
2013-06-14 1
2013-06-17 1
2013-06-18 1
2013-06-24 1
2013-06-26 1
2013-06-26 2
2013-07-02 2
2013-07-02 1
2013-07-12 1
2013-07-15 1
2013-07-18 1
2013-07-19 1
2013-07-22 1
2013-07-25 1
2013-07-25 1
2013-07-26 1
2013-07-29 1
2013-07-29 1
2013-08-08 1
2013-08-09 1
2013-08-15 1
2013-08-16 1
2013-08-19 1
2013-08-19 1
2013-08-27 1
2013-08-30 1
2013-09-02 1
2013-09-02 1
2013-09-03 1
2013-09-05 1
2013-09-06 1
2013-09-10 1
2013-09-11 1
2013-09-13 2
2013-09-13 1
2013-09-18 2
2013-09-19 1
2013-09-24 1
2013-09-27 1
2013-09-30 1
2013-10-03 1
2013-10-07 1
2013-10-07 1
2013-10-07 1
2013-10-07 1
2013-10-10 1
2013-10-10 1
2013-10-10 2
2013-10-11 1
2013-10-16 1
2013-10-16 1
2013-10-17 1
2013-10-21 1
2013-10-21 1
2013-10-21 1
2013-10-23 2
2013-10-24 1
2013-10-25 1
2013-10-28 1
2013-10-30 1
2013-10-30 1
2013-10-30 1
2013-10-31 2
2013-11-01 1
2013-11-01 1
2013-11-05 1
2013-11-05 1
2013-11-05 1
2013-11-07 1
2013-11-08 1
2013-11-11 1
2013-11-12 1
2013-11-12 1
2013-11-12 1
2013-11-15 1
2013-11-15 1
2013-11-15 1
2013-11-19 1
2013-11-21 1
2013-11-22 1
2013-11-26 1
2013-11-28 1
2013-11-28 1
2013-11-29 2
2013-11-29 1
2013-12-02 1
2013-12-02 1
2013-12-05 1
2013-12-09 1
2013-12-11 1
2013-12-11 1
2013-12-12 1
2013-12-12 1
2013-12-20 1
2013-12-20 1
2013-12-24 1
2013-12-26 1
2013-12-26 1
2014-01-01 1
2014-01-01 1
2014-01-07 1
2014-01-08 2
2014-01-15 1
2014-01-15 3
2014-01-16 1
2014-01-17 1
2014-01-23 1
2014-01-23 1
2014-01-24 1
2014-02-04 1
2014-02-07 1
2014-02-07 1
2014-02-07 1
2014-02-07 1
2014-02-10 1
2014-02-11 1
2014-02-12 2
2014-02-14 1
2014-02-17 1
2014-02-17 2
2014-02-24 1
2014-02-25 1
2014-02-26 1
2014-02-26 1
2014-02-27 1
2014-03-03 2
2014-03-03 1
2014-03-04 1
2014-03-05 1
2014-03-06 1
2014-03-10 1
2014-03-13 2
2014-03-13 1
2014-03-14 3
2014-03-14 1
2014-03-17 1
2014-03-17 1
2014-03-20 2
2014-03-25 1
2014-03-25 1
2014-03-27 1
2014-03-31 1
2014-04-03 1
2014-04-04 1
2014-04-04 1
2014-04-04 1
2014-04-07 1
2014-04-09 1
2014-04-09 1
2014-04-10 1
2014-04-16 1
2014-04-17 1
2014-05-05 1
2014-05-06 1
2014-05-07 1
2014-05-08 1
2014-05-12 1
2014-05-13 1
2014-05-14 1
2014-05-15 1
2014-05-16 1
2014-05-16 1
2014-05-16 1
2014-05-19 1
2014-05-22 2
2014-05-29 1
2014-06-03 1
2014-06-04 1
2014-06-04 1
2014-06-05 1
2014-06-05 1
2014-06-06 1
2014-06-09 1
2014-06-10 1
2014-06-10 1
2014-06-13 1
2014-06-13 1
2014-06-13 1
2014-06-16 1
2014-06-16 1
2014-06-18 1
2014-06-18 1
2014-06-19 2
2014-06-19 1
2014-06-20 2
2014-06-20 1
2014-06-20 1
2014-06-24 1
2014-06-24 1
2014-06-27 1
2014-07-02 1
2014-07-04 1
2014-07-04 1
2014-07-08 1
2014-07-09 1
2014-07-10 1
2014-07-16 1
2014-07-17 1
2014-07-17 1
2014-07-18 1
2014-07-21 1
2014-07-23 1
2014-07-29 2
2014-07-29 1
2014-08-01 1
2014-08-05 1
2014-08-06 1
2014-08-06 1
2014-08-12 1
2014-08-13 1
2014-08-13 1
2014-08-14 1
2014-08-19 2
2014-08-20 1
2014-08-22 1
2014-08-26 2
2014-08-27 1
2014-08-29 1
2014-09-02 1
2014-09-03 1
2014-09-03 1
2014-09-03 1
2014-09-03 1
2014-09-05 1
2014-09-05 1
2014-09-05 1
2014-09-08 1
2014-09-09 1
2014-09-10 1
2014-09-11 1
2014-09-12 1
2014-09-16 1
2014-09-19 1
2014-09-19 1
2014-09-22 1
2014-09-24 1
2014-09-24 1
2014-09-25 1
2014-10-01 1
2014-10-02 1
2014-10-06 1
2014-10-10 2
2014-10-15 1
2014-10-16 1
2014-10-17 1
2014-10-17 1
2014-10-17 1
2014-10-20 1
2014-10-21 2
2014-10-22 1
2014-10-22 1
2014-10-23 1
2014-10-23 3
2014-10-29 1
2014-10-29 1
2014-10-29 1
2014-11-03 2
2014-11-03 1
2014-11-04 2
2014-11-06 1
2014-11-07 1
2014-11-07 1
2014-11-14 1
2014-11-14 1
2014-11-18 1
2014-11-21 2
2014-11-24 2
2014-11-24 1
2014-11-26 1
2014-11-26 1
2014-11-26 1
2014-11-26 1
2014-11-27 1
2014-11-28 1
2014-12-01 1
2014-12-02 1
2014-12-04 1
2014-12-04 1
2014-12-08 1
2014-12-09 1
2014-12-11 1
2014-12-12 1
2014-12-15 1
2014-12-15 1
2014-12-16 1
2014-12-18 1
2014-12-18 1
2014-12-19 1
2014-12-22 1
2014-12-25 1
2014-12-25 2
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.calendar {
font: 10px sans-serif;
shape-rendering: crispEdges;
}
.day {
fill: #fff;
stroke: #ccc;
}
.month {
fill: none;
stroke: #000;
stroke-width: 2px;
}
.RdYlGn .q0-11 {fill: rgb(254, 204, 92)}
.RdYlGn .q1-11 {fill: rgb(253, 141, 60)}
.RdYlGn .q2-11 {fill: rgb(240, 59, 32)}
.RdYlGn .q3-11 {fill: rgb(189, 0, 38)}
#tooltip {
font: 12px sans-serif;
background-color: #fff;
border: 2px solid #ccc;
padding: 10px;
}
</style>
<body>
<h1 style="font-family: sans-serif">Road Traffic Collisions within 100m of a school, 2005-2014</h1>
<p style="font-family: sans-serif">Only collisions which occured on a weekday (Mon-Fri) are included</p>
<p style="font-family: sans-serif"><a href="http://www.thedetail.tv/articles/20-mph-school-road-safety">Return to article</a></p>
<div class="calendar"></div>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script>
var width = 921, // width
height = 156, // height
cellSize = 17; // cell size
var format = d3.time.format("%Y-%m-%d"),
month_name = d3.time.format("%b"),
week_days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
var color = d3.scale.quantize()
.domain([1, 4])
.range(d3.range(4).map(function(d) {
return "q" + d + "-11";
}));
var svg = d3.select(".calendar").selectAll("svg")
.data(d3.range(2005, 2015))
.enter().append("svg")
.attr("width", '100%')
.attr("viewBox", '0 0 960 156')
.attr("class", "RdYlGn")
.append("g")
.attr("transform", "translate(" + ((width - cellSize * 53) / 2 + 11) + "," + (height - cellSize * 7 - 1) + ")");
svg.append("text")
.attr("transform", "translate(-11," + cellSize * 3.5 + ")rotate(-90)")
.style("text-anchor", "middle")
.text(function(d) {
return d;
});
for (var i = 0; i < 7; i++) {
svg.append("text")
.attr("transform", "translate(" + (width - 11) + ',' + cellSize * (i + 1) + ")")
.style("text-anchor", "start")
.attr("dy", "-.25em")
.text(function(d) {
return week_days[i];
});
}
var rect = svg.selectAll(".day")
.data(function(d) {
return d3.time.days(new Date(d, 0, 1), new Date(d + 1, 0, 1));
})
.enter().append("rect")
.attr("class", "day")
.attr("width", cellSize)
.attr("height", cellSize)
.attr("x", function(d) {
return d3.time.weekOfYear(d) * cellSize;
})
.attr("y", function(d) {
return d.getDay() * cellSize;
})
.datum(format);
svg.selectAll(".month")
.data(function(d) {
return d3.time.months(new Date(d, 0, 1), new Date(d + 1, 0, 1));
})
.enter().append("path")
.attr("class", "month")
.attr("d", monthPath);
svg.selectAll("text.month")
.data(function(d) {
return d3.time.months(new Date(d, 0, 1), new Date(d + 1, 0, 1));
})
.enter().append("text")
.attr("class", "month")
.attr("x", function(d) {
return d3.time.weekOfYear(d) * cellSize + cellSize;
})
.attr("y", -10)
.style("stroke-width", "0px")
.style("fill", "#000")
.text(month_name);
d3.csv("collisions_by_date.csv", function(error, csv) {
if (error) throw error;
var data = d3.nest()
.key(function(d) {
return d.date;
})
.rollup(function(d) {
return {
number: d[0].number,
};
})
.map(csv);
console.log(data);
rect.filter(function(d) {
return d in data;
})
.attr("class", function(d) {
return "day " + color(data[d].number);
})
// Tooltip functionality
rect.on("mouseover", mouseover);
rect.on("mouseout", mouseout);
function mouseover(d) {
tooltip.style("visibility", "visible");
var collisions = (data[d] !== undefined) ? ": " + data[d].number + " collisions within 100m of a school" : (': no incidents');
var date_text = "<b>" + d + collisions + "</b>";
tooltip.transition()
.duration(200)
.style("opacity", .9);
tooltip.html(date_text)
.style("left", (d3.event.pageX) + 30 + "px")
.style("top", (d3.event.pageY) + "px");
}
function mouseout(d) {
tooltip.transition()
.duration(500)
.style("opacity", 0);
var $tooltip = $("#tooltip");
$tooltip.empty();
}
});
function monthPath(t0) {
var t1 = new Date(t0.getFullYear(), t0.getMonth() + 1, 0),
d0 = t0.getDay(),
w0 = d3.time.weekOfYear(t0),
d1 = t1.getDay(),
w1 = d3.time.weekOfYear(t1);
return "M" + (w0 + 1) * cellSize + "," + d0 * cellSize +
"H" + w0 * cellSize + "V" + 7 * cellSize +
"H" + w1 * cellSize + "V" + (d1 + 1) * cellSize +
"H" + (w1 + 1) * cellSize + "V" + 0 +
"H" + (w0 + 1) * cellSize + "Z";
}
// TOOLTIP
var tooltip = d3.select("body")
.append("div").attr("id", "tooltip")
.style("position", "absolute")
.style("z-index", "10")
.style("visibility", "hidden")
.text("");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment