Skip to main content
100%

sequence explorer - no web server

✓ Published0🌍 Public
EEE2dev
Last edited Dec 18, 2017
Created on Jan 22, 2017

This example uses the D3.js v4 library to create an interactive sequence explorer diagram directly from inline CSV data, requiring no web server. The visualization maps multi-step flows across categories (weather, health, sports, travel) and stages (1st through 4th), with ribbons sized by frequency values. The data is embedded in a `<pre>` tag, and the custom `sequence-explorer.v20.min.js` library renders the Sankey-style sequence chart, while the accompanying CSS handles layout and styling. The example demonstrates how to load and visualize hierarchical sequence data with D3 v4 entirely from a local HTML file, making it ideal for offline or standalone use.

AI-generated description

Sequence explorer

This is the main example without using a web server. Data is embedded in the html file:

  • <pre id="data"></pre> contains the data
  • <pre id="dataNodes"></pre> (optionally) contains the additional quantities of the nodes
  • <pre id="paths"></pre> (optionally) contains the paths with the flowing particles

More examples

Link to sequence explorer on github.


  • example data (simulated) contains user click stream data by age and continent. Node info contains information about clients environment (browser, operating system, device)
  • you can zoom in into one chart by clicking on it
  • to go back, click again
  • go to the sankey "United States" - "18-30" to select my path to see the particles flowing. Unselect the path to proceed with the interaction.

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
83% match