Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Mass shootings since Sandy Hook


How to update the json data files

  1. Get the latest mass shootings spreadsheet.
    1. From Gun Violence Archive’s reports page,
    2. click the Mass Shootings 2018 link,
    3. then click the Export as CSV button,
    4. and on the resulting page click the Download button.
  2. Open the Google Sheets spreadsheet SHOOTINGS (MASS, SCHOOL)
  3. Create a new tab, name it after the current date (YYYYMMDD format).
  4. Compare the contents of the CSV you downloaded against the previous month's update. Import the CSV you downloaded into Google Sheets using the File --> Import menu command. From there choose the "Upload" tab, upload your CSV, and choose the "Replace current cells" option (or whatever sounds like that).
  5. This is janky. You'll need to copy the Incident Date column and paste that into an excel spreadsheet to get the dates formatted the way we format the dates in this project ("13-Mar-18"). Ugh, right? And that's not all:
  6. Since once Google Sheets identifies a table cell as containing a date, it obsessively holds onto that cell's formatting. The only way to fix the date formatting to what we want is to kill the original cell. In this case we delete the column.
  7. So: Delete the Incident Date column, then create a new column, then paste in that column from excel.
  8. Reorder the columns in your new tab. You want the columns in this order: Incident Date Address City Or County State killed injured lat long url headline
  9. Batch geocode the new records. Add the records lat/long's to the spreadsheet.
  10. For the mass shootings we've written about, add the URL and headline.
  11. Convert the spreadsheet to JSON.
  12. Save the JSON in a new file named after the month it is, ala 201804.json for April 2018 or 201811.json for November 2018.
  13. Put that file in the www/data directory and add it to the repo.

How to add the updated JSON to the interactive map

You can’t perform that action at this time.