Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final Project Bar Chart 1

Public visualization

Viewing a saved revision (read-only)

a02ba2b6e60b4ab2b01db6250fa307e5

Final Project Bar Chart 1

0 stars1🌍 Public
Nnathanjmuljadi@gmail.com
Last edited Apr 8, 2025
Created on Apr 8, 2025

This bar chart shows the total number of hate crime victims in San Francisco, aggregated by the suspects' racial group as recorded in the PD-Investigated-Hate-Crimes.csv dataset. The data is processed using `d3.rollups` and `d3.sum` to aggregate victim counts per race, then sorted in descending order and filtered to exclude the three smallest categories. The visualization is rendered as an SVG using `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with bars styled via CSS and hover effects.

AI-generated description