Skip to main content
100%

Treemap of Bee Colonies, Beekeepers, and Bee Colony Loss Numbers by State

✓ Published1🌍 Public
Bbootshine2
Last edited Oct 24, 2019
Created on Oct 23, 2019

This treemap visualizes bee colony loss numbers, beekeepers, and colony counts across US states from 2010 to 2016. The hierarchy nests each state by year, with leaf nodes representing the three metrics. Users can toggle between summing by colony size or counting each statistic, triggering a smooth animated transition. The visualization uses d3.treemap with d3.treemapResquarify, d3.hierarchy, and d3.scaleOrdinal for coloring, rendering SVG cells with clip-paths and labels. Data comes from a generated flare.json file based on USDA survey data.

AI-generated description

An example of porting a work from bl.ocks.org into VizHub. This is a direct port of Mike Bostock’s Block: Treemap, modified only to split into separate files, and to fit in the space available.

The data for this version was generated using a script from https://beta.vizhub.com/bootshine2/beebcddb5fed4c7783b242816468ba9e. Not sure how to automate the file create from the script, or it would use the original CSV file at https://gist.githubusercontent.com/bootshine2/dc83fa6615ecf51fb382e233bf90840a/raw/b36dc061260662b23849d71599d12b336ce027c9/Bee%2520Colony%2520Loss4.csv and would autogenerate the flare.json file.

MIT Licensed

Similar vizzes