Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Iterate my work - bar chart of crime in India

Public visualization

Viewing a saved revision (read-only)

02a3cfd46e9b4fbab85408b35271d582

Iterate my work - bar chart of crime in India

0 stars5🌍 Public
LlzlazmSylas
Last edited Oct 7, 2021
Created on Sep 29, 2021

This bar chart shows the total number of rape cases per state in India for the year 2008, sorted in descending order. It uses D3 v7’s `scaleBand` and `scaleLinear` with SVG rendering. A `rollup` call aggregates cases by state, and an axes are drawn with `axisLeft` and `axisBottom`. Bars change opacity on hover and display the state name via a tooltip div, while a fixed year filter removes overlapping bars.

AI-generated description