Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Massachusetts Crime Proportion by Community

Public visualization

Massachusetts Crime Proportion by Community

0 stars1🌍 Public
Wwenleicao
Last edited Oct 2, 2019
Created on Sep 17, 2019

This example visualizes the proportion of different crime types across Massachusetts communities using a 100% stacked bar chart. Each bar represents a community type, with segments showing the normalized share of burglary, robbery, motor vehicle theft, and violent crime. The chart reveals that rural areas have a higher proportion of burglary, while cities show more robbery and motor vehicle theft. Built with d3.v5, the visualization uses the vega-lite-api to aggregate crime counts by community and crime type, with data loaded from a CSV via d3.csv. The view is rendered as an SVG, with customized axis and label styling for improved readability.

AI-generated description

A visualization constructed using the vega-lite-api.

Crime dataset is unpivot and reloaded in gist repository. This is used to visualize crime distribution in different community. Use 100% stack column chart. From the Chart, rural area have more Burglary, which city has more Robbery, Motor Viechil theft as well as violent crime

dateset intro is here

Gist is from here

Comments

Sign in to join the discussion.

MIT Licensed