Skip to main content
100%

[popup text]

✓ Published0🌍 Public
663anp3ca
Last edited Oct 16, 2018
Created on Oct 16, 2018

This sunburst visualization displays the hierarchical structure of the Bible, with slices representing books and arcs for testaments. The chart uses smooth label tweens that follow the centroid, fading when arcs are too small. Data updates trigger redraws, with slice sizes adjustable between equal outer slices and chapter-count-based sizing. A random color palette is selected from six pre-defined schemes on each refresh. The visualization is implemented with D3.js and SVG animation, with labels that stick to their centroid during transitions. A known issue causes some labels to appear incorrectly after drilling and updating, and the author notes a desire to hide labels as they spin out and to combine path and text tweens.

AI-generated description

Who doesn't love sunbursts? Visit my blog for more.

Super smooth labels, that move cleanly with centroid (using their own tween) and fade when their arc is too small. Previously, labels leveraged the tween for the arc segements, but they seemed to take an abbreviated path, flying off course a bit, so I (and others) hid the labels during most of their tween trip to minimize the effect. These stick right with centroid.

This sunburst also redraws based on underly data updates (specifically, the slice sizes are either based on "size" (where each outer slice =1) or grpsize (where each outer slice is sized based on the number of chapters in that book).

A bug, a wish, and a dream:

  • Bug: Drilling into the sunburst and updating the data will cause some of the labels to appear when they should not.
  • Wish: The labels the spin out of existance at the top -- I'd like to hide them before they begin rotating.
  • Dream: I think that my path tween and text tween could be combined. I don't want to do this until cleaned up the bug and worked on the label spin.

Each time the visual is refreshed, it chooses one of 6 color palette from Mary Stribley's Website Color Schemes.

Found this on github? See it working at http://bl.ocks.org/denjn5.

forked from <a href='http://bl.ocks.org/denjn5/'>denjn5</a>'s block: <a href='http://bl.ocks.org/denjn5/00a57e89c67906897b6eede56219170e'>Super smooth Sunburst Labels v4</a>

gpl-3.0 Licensed

Similar vizzes