Skip to content

A full stack API based application in Python to analyze and visualize data, using HTML, CSS, JavaScript, Plot.ly, and Leaflet for user-driven interactions.

License

Notifications You must be signed in to change notification settings

poonam-ux/Mass_Shootings_in_America

Repository files navigation

Mass-Shootings-in-America

What this project is about?

For this project I chose to analyze and visualize mass shootings in America over the last 40 years. The data was collected from Mother Jones website (an investigative news organization) in a CSV format. Some of the key attributes of the incidents are, fatalities and injuries, location type, shooter’s demographics and mental health, and weapons used.

Process:

  • Data collection and Cleaning
  • Preliminary data analysis and visualization in Jupyter Notebook
  • Python Flask - Defining API Routes
  • Backend Development
  • Dashboard Design

Interactive Dashboard: Landing Page

This page helps user understand the analysis and visualization of the incidents since 1982.

  • User can choose from shooter's Age and/or Race to plot the incidents on the map (bubble map).
  • User can hover over the bubbles to get more information
  • User can navigate to Map View, Chart View and Table View pages

The second map, choropleth map animates to display the incidents in each state (if any) from 1982 to 2021.

Interactive Dashboard: Map View

  • This map is created using Leaflet.
  • User can choose from Incidents or Shooter-Details overlays
  • Popups display the incident and/or shooter details
  • User can navigate to Home page, Chart View and Table View pages

Incident Details:

Shooter Details:

Interactive Dashboard: Chart View

  • Bar chart and Pie chart update when user chooses from Shooter's Age, Race or Location Type
  • User can navigate to Home page, Map View or Table View pages

Interactive Dashboard: Table View

  • User can choose Shooter's Age and/or Race
  • User can sort, filter, order, and select the incidents to get desired results
  • User can navigate to Home page, Map View or Chart View pages

Analysis:

  • Age Group Analysis

  • Weapon Type Analysis

  • Number of Total Victims over the years

  • Incident Occurrences - Google Maps heat layer

About

A full stack API based application in Python to analyze and visualize data, using HTML, CSS, JavaScript, Plot.ly, and Leaflet for user-driven interactions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages