Skip to main content
100%

NYC 311 Calls by Complaint Type

✓ Published0🌍 Public
QQnassiri
Last edited Jul 30, 2018
Created on Jul 30, 2018

A horizontal bar chart shows the volume of NYC 311 complaints by type, with each bar’s length proportional to the count and an approximate value label. The chart loads JSON data from `ComplaintType_Ungrouped.json` via `d3.json`, maps counts to pixel widths with a linear `d3.scale.linear`, and renders rows as SVG `rect` and `text` elements. Buttons trigger `sortAndUpdate`, which re-sorts the data by count and uses `transition.attrTween`-style delays and durations to animate bars into their new positions. A custom tooltip displays exact complaint and count on mouseover.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes