Fork of Fork of Fork of Iterate my work - bar chart of crime in India_VER1.3
✓ Published0🌍 Public
JJonathan Taylor
Last edited May 3, 2023
Created on May 3, 2023
This bar chart visualizes crimes against women across Indian states for a selected year, with dropdown menus to filter by year and crime type. The data is loaded from a CSV file and aggregated by state, then displayed in descending order of case counts. The visualization uses d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.rollups to group the dataset. Bars transition smoothly when filters change, and a mouseover effect adjusts bar opacity to provide hover feedback.
AI-generated descriptionDataset: https://gist.github.com/lzlazmSylas/6be318f1ef48498d10f831bbd78782f3#file-crimes_against_women-csv
X-axis: Number of cases
Y-axis: State
New things:
- Fix bug by filtering the "Year" column and set it to specified year. Now there is no bar staked together.
- Sort the data in descending order.
- Added hover effect to each bar in his visualization.
MIT Licensed