D3 v5 Zoomable Sunburst of Bee Colony Statistics in the US
A zoomable sunburst chart displays US bee colony statistics, breaking down each state by year and further by loss, beekeepers, and colony counts. The interactive visualization allows users to click on segments to drill down into the hierarchy, with animated transitions smoothly rescaling the arcs. Built with D3 v5, it uses the `d3.hierarchy` and `d3.partition` layouts, renders via SVG, and animates with `transition.attrTween`. Data comes from a generated `flare.json` file, ported from an Observable notebook, with colors assigned per top-level state category.
AI-generated descriptionAn example of porting a work from observablehq into VizHub. This is a direct port of Mike Bostock’s Sunburst, modified to fit the Bee Colony loss data.
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.