Interactive Bar chart for Crime against Indian Woman
✓ Published1🌍 Public
This interactive bar chart displays the number of crimes against women across Indian states, with a dropdown menu to filter by year and another to select a specific crime type. The bars are sorted in descending order, and the bar widths animate smoothly when the selection changes. The visualization uses D3 v7 with `scaleLinear`, `scaleBand`, `rollups`, and `transition` to update the chart. Data comes from a CSV file of reported crimes, aggregated by state and year, with the x-axis showing case counts and the y-axis listing states.
AI-generated descriptionDataset: https://gist.github.com/lzlazmSylas/6be318f1ef48498d10f831bbd78782f3#file-crimes_against_women-csv
X-axis: Number of cases
Y-axis: State
New things:
- The defalut order in this visualization is in descending order.
- Adding two menu, one for filtering the data by year, another one for filtering the data by each type of crime.
MIT Licensed