Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final Project Bar Chart 2

Public visualization

Viewing a saved revision (read-only)

be993e6b6a6347b2aab029595b4ce233

Final Project Bar Chart 2

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

This bar chart visualizes the total number of victims of police-investigated hate crimes in San Francisco, aggregated by the most serious bias type (e.g., Anti-Asian, Anti-Gay). Using D3 v7, it loads data from a CSV file, aggregates victim counts with `d3.rollups` and `d3.sum`, and renders an SVG with `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the y-axis. The bars are sorted in descending order and hover-highlighted in orange.

AI-generated description