Skip to main content
100%

Use my own Mass Crime data

✓ Published1🌍 Public
Wwenleicao
Last edited Sep 22, 2019
Created on Sep 22, 2019

This example visualizes the ten highest-crime cities in Massachusetts as a simple column chart, with bars sized proportionally to each city’s crime ratio. The chart uses `d3.csv` to load the 2016 city crime dataset and `d3.scaleLinear` and `d3.scaleBand` for positioning, while rendering bars as SVG `<rect>` elements via React. The visualization omits axes and labels, focusing solely on the relative bar heights to compare crime rates across the selected cities.

AI-generated description

A program that shows the top 10 most crime city in massachusetts as a pathetic column chart with no axes.

Data: Masschusetts Crime dataset for 2016.

MIT Licensed

Similar vizzes