Skip to main content
100%

Polished Massachussetts Top 10 Crime City add filter

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

A dropdown menu filters a bar chart of the top 10 Massachusetts cities by crime rate, showing the percentage for either all communities or only city, rural, or suburb types. The SVG chart uses d3.scaleBand and d3.scaleLinear to position bars, with d3.axis formatting for tick labels. Data comes from a CSV file loaded via d3.csv, and the interface is built with React components and ReactDropdown.

AI-generated description

A program that shows the top 10 most crime city in massachusetts

I have tried my best to adjust the chart. there are a few things I cannot figure out still.

  1. adjst the Y axis, so that 0.0% line line with bottom of column. column value appear correct though. wrap my head, not sure why
  2. tilt the text label so they don't overlap
  3. I was able to refactor useData.js, but not other module. There is a tick() is not a function error I don't have solution.

Data: Masschusetts Crime dataset for 2016.

MIT Licensed

Similar vizzes