Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Crime Data Analysis - Top 15 Most Commonly Used Weapons

Public visualization

Crime Data Analysis - Top 15 Most Commonly Used Weapons

0 stars0🌍 Public
VVinay Vemuri
Last edited Jul 27, 2023
Created on Jul 27, 2023
Forked from Hello VizHub

This chart displays the 15 most frequently used weapons in a crime dataset as a horizontal bar chart. Longer bars indicate higher weapon usage counts, with each bar labeled by weapon name and its total count. The visualization is built with D3.js version 7, loading CSV data from a GitHub Gist. The code counts weapon occurrences, sorts them, and renders the top 15 using SVG rectangles, with d3.scaleBand and d3.scaleLinear defining the axes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed