Sum of Number of Emergencies for each Neighborhoods

In this prototype, I used the number of records as rows, neighborhoods as columns and call type group as color to demonstrate the number of emergency call occurring in different areas and their types. From the chart, we know that Tenderloin, South of Market and Mission areas have the largest number of records.

Goal

For this project, we will use data from the San Francisco fire department to visualize what types of emergencies occur most frequently, and in what parts of the city. We will look at how many firefighters are active at any one time, and the average response time. With all of this data, our overarching goal is to answer one question: is the San Francisco Fire Department fully equipped to handle the multitude and wide range of emergencies that occur in San Francisco?

To do this, our first goal will be to create a visualization or set of visualizations to show the viewer exactly what it is that the SFFD (San Francisco Fire Department) must deal with. From there, we will come up with some metrics to determine exactly how exhausted or low on resources the fire department is. Finally, if possible, we will attempt to visualize how the SFFD could be further supported, or how it could spread it’s existing resources better.

Firefighters rescued the survivors

About Data

Fire Departmemt

Today, the San Francisco Fire Department serves an estimated 1.5 million people, providing fire suppression and emergency medical services to the residents,visitors and workers within San Francisco’s 49 square miles.

DataSet

  • AboutFire Calls-For-Service (The link) includes all fire units’ responses to calls. Each record includes the call number, incident number, address, unit identifier, call type, and disposition. All relevant time intervals are also included.Because this dataset is based on responses, and since most calls involved multiple units, there are multiple records for each call number.Addresses are associated with a block number, intersection, or call box, not a specific address.
  • Data sizeThere are 5.21M rows and 34 columns of data. Each row is a response.
  • Data license

    “This data is made available under the Public Domain Dedication and License v1.0 whose full text can be found at: www.opendatacommons.org/licenses/pddl/1.0/”

    Click here to read dataset license informaiton.

  • Column Description
    1. Call Number: A unique 9-digit number assigned by the 911 Dispatch Center (DEM) to this call. These numbers are used for both Police and Fire calls.
    2. Call Type Groups: Call types are divided into four main groups: Fire, Alarm, Potential Life-Threatening, and Non-Life Threatening.
    3. Box: Firebox associated with the address of the incident. A box is the smallest area used to divide the City. Each box is associated with a unique unit dispatch order. The City is divided into more than 2,400 boxes.
    4. Location: Latitude and longitude of address obfuscated either to the midblock, intersection, or call box.

About Visualization

In this visualization, I used the number of records as rows, neighborhoods as columns and call type groups as color to demonstrate the number of emergency calls occurring in different areas and their types. From the chart, we know that Tenderloin, South of Market, and Mission areas have the largest number of records.

For this visualization, I want to have some interaction to help users understand the data better. For example, I will add a highlight, when a user hovers the bar, it will give exact information on the number of records for the area and each call type. Besides, if a user clicks on one cell type on a bar, it should jump to another chart created by my teammate, which will display more detail about that type over time.

In terms of the theme, we want to answer the question: is the San Francisco Fire Department fully equipped to handle the multitude and wide range of emergencies that occur in San Francisco. My chart can indicate the number of records occurring in different areas of San Francisco, so we can know what area has the largest number of records and if the fire department can handle them in time.

Data encoding

In my bar chart implementation, the x-axis represents the sum of a number of emergencies, and the y-axis represents all major neighborhoods in San Francisco, while the color represents a different call type group.

So, the longer the bar is, the larger the number of emergencies that have been recorded from that neighborhood.

Sum of Number of Emergencies for each Neighborhoods Interactivity1

Zooming

This implementation allows the user to zoom in to make the detail more readable.

There are two ways to zoom in the chart:

  1. Move the mouse cursor to white space of the chart’s canvas, and double-click, it zooms in the chart by double of its size.
  2. Move the mouse cursor to the chart’s canvas, scroll up.

To zoom out, simply scroll down the mouse.

Sum of Number of Emergencies for each Neighborhoods Interactivity2

Hovering

Hovering/mouse entering a color block will highlight the current color block(call type) in this neighborhood and fade out other color blocks(call types) from the same neighborhood.

Besides, it will display a tooltip, which covers the neighborhood name, the call type, the number of emergencies, and the ratio of number among the current neighborhood.

Move the mouse out of the color block(call type) will cancel the highlight and make the tooltip disappear.

Sum of Number of Emergencies for each Neighborhoods Interactivity3

Clicking

This interactivity is very similar to the hover, but it listens to the mouse clicking. Clicking on a color block(call type) will highlight the current color blocks(call types) in all neighborhoods and fade out other color blocks(call types) from all the neighborhoods.

Also, it will display a tooltip, but it’s a little different than the hovering one, because it covers the first 3 same information, but the last information is the ratio of number among the same cell type from all neighborhoods.

Move the mouse out of the current block(call type) will cancel the highlight and make the tooltip disappear.

Sum of Number of Emergencies for each Neighborhoods Interactivity4

Dragging

The chart also allows readers to drag the bars up and down, the reason to do this is that they will be able to align the bar with the x-axis and use the axis as a ruler to determine the actual data of the bar.

To drag the chart, simply keep pressing the mouse on the white space of the chart’s canvas and move the mouse up or down. Remember, don’t click on the bars, otherwise, it will highlight the bar instead.


Write a Comment