Skip to main content
100%

Housing Violations Data - 2012 (d3 dropdown)

✓ Published0🌍 Public
BBBischof
Last edited Jul 31, 2016
Created on Jul 31, 2016

A beeswarm plot shows the temporal distribution of 2012 housing violations, with each point representing a single violation. A dropdown menu filters the dataset by violation type, such as "Refuse Accumulation" or "Lead Hazard," and hovering reveals details. The x-axis maps violation dates using a time scale, while a force-directed simulation (`d3.forceSimulation`, `d3.forceX`, `d3.forceY`, `d3.forceCollide`) arranges overlapping points. The visualization uses SVG rendering, loads data from a CSV, and displays summary statistics like the number and earliest/latest violation dates.

AI-generated description

A beeswarm plot to visualize housing violations from 2012. Each point is a violation of the specified type.

Select different sorts of violations from the drop down menu. Hold your mouse over a point to reveal more details.

The beeswarm plot is a convenient modification of the scatterplot for one dimensional datasets where some data points have the same x-value.

An alternative view can be seen <a href="http://bl.ocks.org/BBischof/7607b90705281634c6da741c34d9ba7c">here</a>

Original Example: <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block, <a href='http://bl.ocks.org/mbostock/6526445e2b44303eebf21da3b6627320'>Beeswarm</a>

Drop down inspired from <a href="http://bl.ocks.org/micahstubbs/d393bcfde0228430c00b">Micah Stubb's guide.</a>

forked from <a href='http://bl.ocks.org/BBischof/'>BBischof</a>'s block: <a href='http://bl.ocks.org/BBischof/a9e166f26ea11e01d838273e34a043b6'>Housing Violations Data - 2012</a>

forked from <a href='http://bl.ocks.org/BBischof/'>BBischof</a>'s block: <a href='http://bl.ocks.org/BBischof/f463291ee5d339b74f21c5ddbfbf798d'>Housing Violations Data - 2012</a>

gpl-3.0 Licensed

Similar vizzes