Skip to main content
100%

sequence explorer - first example

✓ Published0🌍 Public
TThanaporn-sk
Last edited Jan 18, 2017
Created on Jan 18, 2017

This example uses a sequence explorer to visualize changes in categorical flows over time as an animated Sankey diagram. It shows how values move between categories (moods) across sequential years (2000–2003), with node heights scaled by flow magnitude. The chart is built with D3 v4, using the `d3.sankeySeq` extension to manually position nodes along the x-axis via `xScale` and `yScale`. Multiple Sankey diagrams are generated for data subsets (e.g., product type, age group) from a CSV file, with interactive node highlighting and tooltips.

AI-generated description

forked from <a href='http://bl.ocks.org/EE2dev/'>EE2dev</a>'s block: <a href='http://bl.ocks.org/EE2dev/b9a20ef36c2a3caf5d7b0374a2d677a7'>sequence explorer - first example</a>

mit Licensed

Similar vizzes

Loading thumbnail…

Sequence explorer - single chart (with JSON file)

This example demonstrates a single-chart sequence explorer visualization built with D3 v4, loaded from an external JSON file. The chart visualizes sequential event flows, with events ordered along the y-axis using the `eventOrder` method (home, product, search, account, other) and the x-axis labeled as "visit" via the `sequenceName` setting. The JSON data defines a directed graph of transitions between events, with values representing the volume of each step. The visualization is instantiated by calling `sequenceExplorer.chart("sequence1.json")` and rendered into a div in the body. This approach highlights the sequence explorer's ability to depict multi-step event pathways, similar to a sunburst but in a linear, flow-based layout, making it easy to compare pros and cons against alternative visualization methods for the same dataset. The data is derived from Kerry Rodden's sunburst example, and the chart is configured to reorder event categories on the y-axis and customize tooltip labels. The single chart version keeps all event sequences in one view, useful for tracking navigation flows or funnel analysis.This example demonstrates how to create a **single-chart sequence explorer** using D3 v4 and data loaded from an external JSON file. The chart visualizes sequential categorical data—here, sequences of website events such as "home", "product", "search", and "account"—as a Sankey-style flow diagram. Each row represents a step in the sequence, and the width of the links corresponds to the number of visits, making it easy to identify common paths and drop-off points. The code shows how to initialize the chart with a JSON file, customize the event order on the y-axis, and rename the x-axis for tooltips. The data is derived from Kerry Rodden’s sunburst example, allowing for a direct comparison between the two visualization approaches for the same dataset.

EEE2dev
76% match