Skip to content

Instantly share code, notes, and snippets.

@ShepTeck
ShepTeck / README.md
Last active September 22, 2015 21:46
D3 Zoomable Sunburst of US Rig Counts Sept 2015

Here is another D3 Sunburst only with better execution.

Demonstrates: -Zoomable Sunburst with Labels -Coloration of layers based on data in cells -Breadcrumb trail to highlight where the hover is -Change in opacity along the trail -Control of widths of layers based on order

.. and lots of other stuff I Googled till my eyes bled.

@ShepTeck
ShepTeck / README.md
Last active September 15, 2015 19:19
D3 Sunburst with Changing Datasets

I am trying to make a partitioned sunburst that will have the ability to transition between multiple datasets. So far, all it does is add the datasets together and gives the error path.exit is not a function. I made some changes to the sequence.js based on this blog on how to have updating JSON (http://pothibo.com/2013/09/d3-js-how-to-handle-dynamic-json-data/). However, I still cannot get the sunburst that replaces the original to be in the same position as the original.