Skip to main content
100%

Under Custody

✓ Published1🌍 Public
XXiaoyu Su
Last edited Sep 9, 2021
Created on Jan 27, 2021
Forked from HTML Starter

This interactive visualization explores New York State Department of Corrections and Community Supervision (NYDOCCS) inmate data, presenting a bar chart alongside a choropleth map of county-level statistics. Users dynamically filter the bar chart's x and y axes through dropdown menus, with color-coded bars representing aggregated counts, average ages, or average time served for various categorical attributes like sex, race, or prison. The SVG-based map, rendered using `d3.geoMercator` and `d3.geoPath`, offers a separate dropdown to display variables such as incarceration rates or demographic percentages by county. Built with React, D3 v5, and the `react-dropdown` component, the visualization updates smoothly via React hooks and includes interactive tooltips.

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