Skip to main content
Public

Share visualization

Loading preview…

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

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

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

1
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.

Comments

Sign in to join the discussion.

MIT Licensed