https://github.com/frankfarrell/gardacrimemap
Interactive crime map by garda division
https://github.com/frankfarrell/gardacrimemap
Last synced: 7 months ago
JSON representation
Interactive crime map by garda division
- Host: GitHub
- URL: https://github.com/frankfarrell/gardacrimemap
- Owner: frankfarrell
- Created: 2015-09-02T22:47:30.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T20:59:18.000Z (over 10 years ago)
- Last Synced: 2025-02-13T04:53:59.390Z (over 1 year ago)
- Language: JavaScript
- Size: 4.67 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gardacrimemap
This is an quick attempt to make an interactive crime map by garda division where you can srcrub by year and offence and the map updates with rank by garda division that runs entirely in the browser.
The data is from cso for 2003-2015. The px-axis format is converted to a flat json format using https://www.npmjs.com/package/px You can run the pxConverter.html script to get it from firebug:)
This data is put into a Crossfilter multidimensional array. (This eats a fair bit of memory).
The garda topo file was converted from cso.ie boundary shapefile using orge and mapshaper. Unfortunately the names of stations in the shapefile did not correspond exactly to names in PC-Axis file. I converted them manually in the geojson, feel free to use them.
The geojson is overlaid on the map with d3js and the colouring is the rank of crime where black is the worst and transparent is good. This updates as you scrub the crime type and year bar charts. Eg it is possible to find the worst garda station for weapons crime in 2007.
It would be nice to make it such that crime types arent ordered as in a bar chart (but not just checkboxes).
It would also be possible to group by different hierarchies of garda division/county/district. Some sort of radial thing would be nice.