Crime Incidents Treemap @ Washington, DC
This on Github About This Sample
×

About this map

This sample demonstrates how a dataset from DC Open Data can be visualized in a D3 dynamic Treemap chart. Basically, CSV download > nest into hierarchy > display in treemap

Instructions
Each rectangle is sized relative to the quantity it represents. At any given time, the treemap shows two levels of hierarchical data: a parent rectangle denoted by thicker lines, and the colored-in children. Click or tap any rectangle to "zoom in" - in other words, make the child the parent and display the next level.

Built with...
D3, jQuery

Download Crime Incidents - 2017 data in CSV
https://opendata.arcgis.com/datasets/6af5cb8dc38e4bcbac8168b27ee104aa_38.csv

View Crime Incidents - 2017 data on DC Open Data
http://opendata.dc.gov/datasets/crime-incidents-in-2017

DC Open Data
http://opendata.dc.gov

DC Open Data Samples
https://github.com/DCgov/opendatadc-starterkit