The city of San Francisco has numerous data sets available to the public, including data that details reports about graffiti in the city.  This article will model, integrate, and visualize that data.

Accessing the Data

San Francisco’s graffiti data can be accessed at the following web page:

https://data.sfgov.org/Service-Requests-311-/Graffiti-SF311-Reports/vyt7-q4b9

The page is in a user-friendly Socrata format containing discussions, links to other views, and different formats for accessing the data.

Modeling the Data

The San Francisco Graffiti data is sourced as a normalized table containing several attributes.  The column [Opened] contains date and time information that can be derived into a date and time column to reference Date and Time dimensions.

Metrics

The only metric added to the Open Data Bits example solution is for [Graffiti Count], which represents a count of rows in the data.  Theoretically, this should represent a count of graffiti reports.

Visualizing the Data

Once the San Francisco Graffiti Reports open data has been modeled, business intelligence tools can be used to visualize the data.  For the example below, the solution was built in Power Pivot and is displayed using Power View for Excel 2013.  Here’s a screenshot of the solution in Power Pivot:

Starting out filtered for 2013 and the [Neighborhood] values of “Mission,” “Western Addition,” and “Haight Ashbury” the San Francisco Graffiti open data can be visualized as shown below.  Slicers for [Year], [Month Year], [Neighborhood] and [Supervisor District]  filter the interactive charts.  The upper right map shows reports by [Neighborhood], the pie chart shows reports by [Supervisor District], and the bar chart at the bottom visualizes reports by [Neighborhood] and month:

Selecting “May 2013” in the slicer and drilling into the bar chart shows the reports in May 2013 by day:

Selecting only the [Neighborhood] slicer for “Mission” reveals that most of the reports there map to [Supervisor District] member “9”:

Selecting only [Supervisor District] member “9” in the slicer, and drilling into the pie chart to show [Category] “Graffiti Private Property” shows that most of the reports fell along two streets on the map, including 24th Street:

Posted in

Leave a Reply

Discover more from Greg Beaumont's Data & Analytics Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading