D3.js (Version 5) Non-Proportional Symbol Map of SF 311 dataset

For this project, I have used a Non-Proportional Symbol Map in D3.js (version 5) to visualize data from the "SF 311 dataset".

Data Encoding

  • Basemap: Neighborhoods of SF area
  • Color/Legend: Range of case numbers
  • Circle: Individual case
  • Tooltip: Neighborhood information
  • Detail Panel: Case information

Dataset

This dataset includes cases generally associated with a place or thing (for example parks, streets, or buildings) and created July 1, 2008, or later. Cases generally logged by a user regarding their own needs (for example, property or business tax questions, parking permit requests) are not included. See the Program Link and detailed attachment below for more information.

Dataset Information

I accessed this data on April 9, 2020, and by the date I fetched it, it had the following details.

  • Data Last Updated: April 9, 2020
  • Metadata Last Updated: January 30, 2020
  • Date Created: October 8, 2011
  • Data Provided by: San Francisco 311
  • Dataset Owner: AndyM
  • Publishing Department: 311
  • Geographic unit: Latitude/longitude
  • Program link: https://support.datasf.org/help/311-case-data-faq
  • Publishing frequency: Daily
  • Data change frequency: Multiple times per hour

Dataset Analysis

This dataset has 4.14M rows and 20 columns, while each row has 311 cases.

Columns in this dataset

Column Name Description Type
CaseID The unique ID of the service request created. Number
Opened The date and time when the service request was made. Date & Time
Closed The date and time when the service request was closed. Date & Time
Updated The date and time when the service request was last modified. For requests with status=closed, this will be the date the request was closed. Date & Time
Status A single-word indicator of the current state of the service request. (Note: GeoReport V2 only permits ‘open’ and ‘closed’). Plain Text
Status Notes Explanation of why status was changed to current state or more details on current status than conveyed with status alone. Plain Text
Responsible Agency The agency responsible for fulfilling or otherwise addressing the service request. Plain Text
Category The human readable name of the service request type. Plain Text
Request Type The human readable name of the service request subtype. Plain Text
Request Details The human readable name of the service request details. Plain Text
Address Human readable address or description of location. Plain Text
Street Primary Street of the associated address. Parks may have a park name instead of a street name. Requests not associated with an address will be blank. Plain Text
Supervisor District San Francisco Supervisor District as defined in ‘Supervisor Districts as of April 2012’. Number
Neighborhood San Francisco Neighborhood as defined in ‘SF Find Neighborhoods’. Plain Text
Police District San Francisco Police District as defined in ‘Current Police Districts’. Plain Text
Latitude Latitude of the location, using the WGS84 projection. Number
Longitude Longitude of the location, using the WGS84 projection. Number
Point Combination of Latitude and Longitude for Socrata native maps. Location
Source Mechanism or path by which the service request was received; typically ‘Phone’, ‘Text/SMS’, ‘Website’, ‘Mobile App’, ‘Twitter’, etc but terms may vary by system. Plain Text
Media URL A URL to media associated with the request, e.g. an image. Website URL

Dataset License

This dataset uses the Public Domain Dedication and License (PDDL).

Except where otherwise stated in the file containing such Data or on the page from which such Data is accessed, including its metadata, Data is made available under the Public Domain Dedication and License v1.0 whose full text can be found at http://www.opendatacommons.org/licenses/pddl/1.0/

maarten-van-den-heuvel-gZXx8lKAb7Y-unsplash
Non-Proportional Symbol Map Interactivity1

Tooltip

Hovering on a map’s block will display a tooltip box and it will follow the user’s mouse cursor.

Non-Proportional Symbol Map Interactivity2

Detail Panel

Hovering on a map’s circle will display a detail panel on the top-left corner of the map.

Non-Proportional Symbol Map Interactivity3

Zooming

Zooming can be done by scrolling down or up on the map.

Non-Proportional Symbol Map Interactivity4

Dragging

Pressing and moving the mouse on the map at the same time can drag the map around.


Write a Comment