🌍 Public
Viewing a saved revision (read-only)
2b2f754ddc8b4d0ea7b75e5556e969c0
Use my own Mass Crime data
Wwenleicao
Last edited Sep 22, 2019
Created on Sep 22, 2019
Forked from Convert Curran's Bar chart to Column Chart
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 descriptionA program that shows the top 10 most crime city in massachusetts as a pathetic column chart with no axes.