Treemap Bar Chart
✓ Published0🌍 Public
PPatMartin
Last edited Aug 7, 2017
Created on Jan 13, 2017
This example visualizes six years of crime statistics across U.S. states, using a treemap bar chart to compare counts for different offense types. The chart shows hierarchical data where each state’s total crime count is divided into rectangular sections representing specific crimes. Built with dex.js and D3.js, the visualization reads from a CSV file and renders as an interactive treemap-based bar composition. The code uses d3.csv to load data and the dex.charts.d3.TreemapBarChart component, with manual sizing and hover effects controlling opacity for emphasis.
AI-generated descriptionTreemap Bar Chart
This is a reusable dex.js bar chart composed of treemaps based upon Chris Givens example.
References
- dex.js The main site
mit Licensed