Skip to main content
100%

Under Custody

✓ Published0🌍 Public
AAnnie Ulichney
Last edited May 5, 2021
Created on May 5, 2021
Forked from Under Custody

This interactive visualization displays New York State Department of Corrections and Community Supervision (DOCCS) under-custody data, showing both a bar chart and a choropleth map of county-level incarceration statistics. Users can filter the bar chart by selecting categorical variables like sex, age, or race for the x-axis and choose between metrics such as total count, average age, or average time served for the y-axis. Tooltips on bars reveal detailed breakdowns, including percentages and cumulative age-group totals. D3 v5 handles SVG rendering, scales, and axes, while React manages dropdown selections and updates the visuals dynamically.

AI-generated description

NY DOCCS Under Custody Data Visualization with Filters on X and Y Axes

To Do:

  • Update Y axis label to reflect user selection
  • Change "y-axis" and "x-axis" text to be outside the dropdown
  • Eliminate entries with no info for selected variables before plotting to prevent empty bars
  • Eliminate age from x-axis selection options without breaking the code

Build Instructions

  • First to install dependencies
foo@bar:~$ npm install
  • After each modification run the code below to build bundle.js
foo@bar:~$ npm run build

Credit

  • Using react DOM to render the barplot.
  • Using react Dropdown component.
  • Using react hooks to change the data.
MIT Licensed

Similar vizzes