Sequences sunburst
This sunburst chart visualizes hierarchical sequence data as an interactive radial layout, with each ring segment representing a step in a user journey. Built with D3 v4, it uses a partition layout and arcs sized by value. Hovering over any segment fades all non-ancestor paths and displays a breadcrumb trail above the chart, showing the sequence of steps leading to the hovered node along with the percentage of visits that follow that path. The visualization also includes a toggleable legend and a centered explanation text that updates dynamically. The data is loaded from a CSV file and converted into a hierarchical JSON structure for rendering. Animated transitions are not used; instead, interaction is driven by mouseover and mouseleave events. The example is adapted from Kerry Rodden's block and licensed under Apache 2.0.
AI-generated descriptionTo display longer text on the upper left,
you can either:
increase the width of the rectangles by:
// Breadcrumb dimensions: width, height, spacing, width of tip/tail. var b = { w: 175, h: 30, s: 3, t: 10 };```and/or decrease the font-size:
#sequence text{ font-size: 10px; } </style>```
forked from <a href='http://bl.ocks.org/kerryrodden/'>kerryrodden</a>'s block: <a href='http://bl.ocks.org/kerryrodden/766f8f6d31f645c39f488a0befa1e3c8'>Sequences sunburst (d3 v4)</a>