Skip to main content
100%

Sequences sunburst

✓ Published0🌍 Public
BBBischof
Last edited Aug 17, 2016
Created on Aug 17, 2016

The Sequences sunburst visualizes the paths of assistance sought by recidivists in an SCC homelessness project, with sequences reversed to show where individuals end up rather than where they start. It displays counts from a CSV file as a rectangular tree map, where each sequence is a series of colored segments representing service types. Users hover over a segment to highlight its full ancestry path in the breadcrumb trail and see the percentage of total cases it represents. The code uses d3.layout.partition with d3.text and d3.csv.parseRows to build the hierarchy, along with mouseover and mouseleave event handlers for interaction.

AI-generated description

An Icicle plot to show all the sequences of assistance sought by recidivists in the SCC homelessness project. This has the sequence order reversed so that one can see where the individuals end up, as opposed to where they start.

One issue with this visualization is that some of the sequences are extremely long. The dataset could be cleaned up to avoid these "long sequences" without losing any information.

forked from <a href='http://bl.ocks.org/kerryrodden/'>kerryrodden</a>'s block: <a href='http://bl.ocks.org/kerryrodden/ce6b7bf97c6b77ee6dde'>Sequences icicle</a>

forked from <a href='http://bl.ocks.org/BBischof/'>BBischof</a>'s block: <a href='http://bl.ocks.org/BBischof/67ab570b00d9557e043d79aa26aaca95'>Recidivist Sequences Icicle (Reverse)</a>

gpl-3.0 Licensed

Similar vizzes

Loading thumbnail…

Sequences sunburst

This sunburst visualization summarizes sequences of user navigation paths through a website, using a D3 v3 partition layout to display hierarchical data derived from a CSV of event sequences. The data is parsed from rows in visit-sequences.csv, where each line is a complete path from root to leaf, and the partition layout computes the intermediate values by summing counts for shared prefixes. The visualization is interactive: hovering over an arc highlights the corresponding sequence and updates a breadcrumb trail at the top, showing the current path from the root. A central label displays the percentage of all visits that begin with the hovered sequence. The legend toggles visibility, and colors represent distinct page types (e.g., home, product, search, account, other, end). The sunburst uses a radial partition layout with arcs sized by the value of each node, and it includes a breadcrumb trail to emphasize the sequence of steps. Percentages are shown explicitly to mitigate the distortion inherent to radial presentations. The example demonstrates how to handle sequence data without pre-generating hierarchical JSON, using a CSV with hyphen-separated steps and an "end" marker for true endpoints. Key features: - Interactive breadcrumb trail emphasizes the sequence. - Percentages shown explicitly to help overcome radial data distortion. - Uses D3 v3 and a partition layout to create the sunburst. - Works with CSV data (no need for pre-generated hierarchical JSON). - Mouse events update the breadcrumbs and percentages on hover. - Toggle legend option to show/hide the color legend. - Hovering over arcs displays the corresponding sequence and percentage of visits.This example demonstrates a D3.js sunburst visualization (partition layout) designed to summarize sequences of events, such as navigation paths through a website. The circular chart displays hierarchical data as a series of concentric rings, where each ring segment represents a step in a sequence, and its arc length encodes the number of visits. The interactive visualization features a breadcrumb trail that updates as users hover over segments, clarifying the current path. Percentages are displayed explicitly to counterbalance the distortion inherent in radial representations. The data is loaded from a CSV file without a header, using hyphens to separate sequence steps and an "end" marker to indicate true endpoints. The visualization is generated using D3 v3 and includes a legend to map steps to colors. The project is licensed under the Apache License 2.0 and was forked from Kerry Rodden's block.

EEE2dev
83% match