Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Dynamic Bar Chart

Public visualization

Dynamic Bar Chart

0 stars0🌍 Public

This dynamic bar chart visualizes crimes against women in India, showing the number of assault cases for each state in a selected year. A dropdown menu lets users switch between years, while bars transition smoothly to updated values and re-sort in descending order. The visualization uses D3 v7 APIs including `csv`, `rollups`, `scaleLinear`, and `scaleBand`, with `transition` and `easeLinear` for animation. Bars change opacity on hover, and value labels appear at the end of each bar. The dataset comes from a CSV hosted in a GitHub gist.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed