Skip to main content
100%

NY DOCCS Under Custody Data Visualization with Filters

✓ Published0🌍 Public
EEvan Misshula
Last edited Mar 12, 2021
Created on Mar 12, 2021
Forked from HTML Starter

A bar chart explores New York State DOCCS under-custody data, allowing users to select which categorical variable (such as sex or race/ethnicity) appears on the x-axis and which aggregate metric (such as count, average age, or average time served) appears on the y-axis. The visualization uses d3.nest() to group and roll up records, and d3.scaleBand and d3.scaleLinear to position bars. Data loads as JSON from a GitHub gist, and the SVG rendering updates dynamically via d3 transitions and axis redraws.

AI-generated description

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

To Do:

  • 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
  • Sort bars into descending
  • Bin age on x axis
  • Add summary tables
  • Add sentence length
  • CSV data input

Credit

MIT Licensed

Similar vizzes