Skip to main content
100%

Massachussetts Top 10 Crime city Refactor Code

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

This example presents a bar chart of the top 10 Massachusetts cities by crime ratio, using data from a 2016 city crime population dataset. The chart displays crime ratios as vertical bars without axes, showing values through a y-axis scale and city names as x-axis labels. Built with React for component rendering and D3 v5 for data loading and scaling, it uses `scaleLinear` and `scaleBand` to map coordinates, while rendering the visualization as SVG elements.

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