CS 560: Midterm Team Enigma

Yearly Average Calls Per Neighborhood (2013-2019)

Data Encoding

The x-axis indicates the Call Type Group, while the y-axis indicates the neighborhood names. The valid Call Type Groups are:
  1. Alarm
  2. Fire
  3. Non Life-Threatening
  4. Potentially Life-Threatening

The yearly average number of calls per Call Type Group for each neighborhood is encoded by color in the heatmap. The provided legend shows the full range of total numbers of calls.

Wrangling

Used an edited version of a CSV column removal script to remove unnecessary columns for faster parsing.

Interactions

Even though a heatmap is a good way to show the different range of values, it doesnt really show the exact values themselves. To alleviate this issue, a tooltip pops up when you hover over each cell showing you the name of the neighborhood and the exact call count of that call type group.

In addition to viewing tooltips, users can also choose to view a sorted view of the heatmap by Call Type Group (in descending order) via a dropdown menu at the top of the heatmap.


Sorting order:

Conclusion

From viewing the average calls for each call type group, it's almost unanimous that the top 5 most active neighborhoods are Tenderloin, Mission, Financial Distric/South Beach, South of Market, and Bayview Hunters Point. Over the 7 year period from 2013 to 2019 these 5 neighborhoods were consistently at the top in terms of call activity. And while this is not an indication of how dangerous area can be (as it would hard to say without population data to back up that hypothesis), this visualization does go to show that some neighborhoods do have higher call activity than most of the other neighborhoods in San Francisco.

Inspirations

Inspiration for modifying charts via dropdown menu.

Tooltip css.