Skip to main content
100%

Florida Gun Deaths

✓ Published0🌍 Public
CCatherine-Yu
Last edited Mar 3, 2017
Created on Mar 3, 2017

A line and area chart displays the annual number of firearm murders in Florida from 1989 to 2015, highlighting a decline through the 1990s and a rise after 2005. The SVG visualization uses d3.scaleLinear, d3.line, and d3.area to encode the data, with axes generated via d3.axisBottom and d3.axisLeft. The chart reads from a CSV file and the code includes labels for the title, source, and annotations.

AI-generated description

Florida Gun Deaths

This block provides a rough re-creation of the Florida Gun Deaths visualization. Keeping in mind the inspiration and issues discussed, try to redesign this visualization. Focus first on editing the style (colors, thickness of lines, etc.) before changing the encoding.

Original Visualization

The original visualization appeared in the article This Chart Shows An Alarming Rise In Florida Gun Deaths After 'Stand Your Ground' Was Enacted article by Pamela Engel on Business Insider on February 18, 2014.

The chart was created by Christine Chen. She responded to the discussion, and linked to her inspiration for the graphic. This inspiration appeared in the infographic Iraq's bloody toll by Simon Scarr on South China Morning Post on December 17, 2011.

Online Discussion

There was a lot of discussion, especially on Twitter and various blogs, when this visualization came out. Here are some of those posts:

Original Data

You can access the original (and updated) data for this visualization from the Florida Statistical Analysis Center. Specifically, you can download the "Murder: Firearm Type and Rate for Florida" dataset in PDF or Excel format the UCR Offense Data page.

Trifacta Recipe

To generate the data.csv file, the original 1971_fwd_murder_firearms.xlsx file was transformed using the following Trifacta Wrangler recipe:

splitrows col: column1 on: '\n' quote: '\"'
delete row: IN(SOURCEROWNUMBER(), [1,2])
split col: column1 on: ',' limit: 11 quote: '\"'
replace col: * with: '' on: '\"' global: true
header
delete row: SOURCEROWNUMBER() == 4
drop col: Total_Murders, Murder_Rate_per_100_000, Total_Handgun, Total_Other_Firearm, Total_Percent_by_Firearms, Percent_by_Handguns, Percent_by_Other_Firearms, Total_by_Firearm_change, Population_Change
rename col: Total_by_Firearm to: 'Total'
delete row: IN(SOURCEROWNUMBER(), [50, 57, 51, 52, 53, 54, 55, 56])
keep row: (DATE(1989, 1, 1) <= Year) && (Year < DATE(2017, 1, 1))
derive value: Total / (Population / 100000) as: 'Rate'

forked from <a href='http://bl.ocks.org/sjengle/'>sjengle</a>'s block: <a href='http://bl.ocks.org/sjengle/8c2b8064e0e6971a89f0'>Florida Gun Deaths</a>

forked from <a href='http://bl.ocks.org/ngchwanlii/'>ngchwanlii</a>'s block: <a href='http://bl.ocks.org/ngchwanlii/f2f6bad076f05f06854cb8c483e785b7'>Florida Gun Deaths</a>

forked from <a href='http://bl.ocks.org/ngchwanlii/'>ngchwanlii</a>'s block: <a href='http://bl.ocks.org/ngchwanlii/fa802f688e67c2bdb86e9e1c7537a95f'>Florida Gun Deaths</a>

Similar vizzes