Multi Line Chart

Data Wrangling

Data was wrangled first prior to download, through the editor provided on the data provider's website. There, we were able to filter to download only the calls that were part of the call group "Life-Threatening", and only download data between the years of 2013 and 2019. That data was then wrangled in Excel, where we removed unecessary columns. Finally, additional filtering, namely excluding all but the top 8 neighborhoods in terms of number of life-threatening calls, was done through Javascript.

Visualization

This visualization shows the number of calls deemed life-threatening from 2013 to 2019, per neighborhood, for the 8 neighborhoods with the most number of such calls. The number of neighborhoods is reduced from 15 to 8, compared to our prototype, because the 7 removed neighborhoods showed similar trends and only made the visualization more crowded. The x-axis indicates the time period by year, while the y-axis indicates the number of calls for each year. Since this is broken down by neighborhood, each neighborhood is colored, and the color is indicated in the legend that accompanies the chart. There is clearly an upward trend in terms of calles deemed life-threatening in most of the neighborhoods indicated in the chart. This may in part be because of an increase in population year over year, so we can not necessarily conclude that there's an increase in calls per person. However, considering some of the neighborhoods included in this visualization have increases of 50% (Tenderloin, Bayview) to 75% (South of Market), it's likely these increases in life-threatening calls are not only because of an increase in population.

Interactions

I added tooltips upon hover to make it easier to tell which line applies to which neighborhood, and I only added the ability for the user to filter which lines they'd like to see by clicking on each line, so that the graph is easier to intepret, since the bottom section still looks a bit crowded.