Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Iterate my work - bar chart of crime in India

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed