Module: Mass Shootings in 2015
A map of all incidents defined by the Gun Violence Archive as “mass shootings”—i.e., an incident involving firearms where four or more individuals were shot. This was originally a supplement to a data story about tracking gun violence.
For each incident, the radius of the circle is a function of how many individuals were injured or killed. Clicking on each one will bring up an info box in the bottom left with a link to a local news article about the incident.
Since the CSV download function on Gun Violence Archive has a few problems—namely that it doesn’t properly export the news source of the incident, and also it takes an extra click to see the lat/long coordinates of each incident—I wrote a little Python script to scrape all the information I wanted into a CSV. The scraper relies on Beautiful Soup and the requests library. The map was then created using D3.