sequence explorer - highlight path
This example demonstrates how to highlight a specific user navigation path within a sequence explorer visualization, a Sankey-style diagram showing event flows. The visualization displays sequences of events (home, product, search, account, other) as ribbons and nodes, with the highlighted path traced in orange across the chart. The implementation uses the sequence-explorer library built on D3 v4, loading data from a CSV file and customizing the event order and axis label via method chaining. CSS rules style the highlighted path by targeting specific SVG path and rect elements, applying an orange fill and stroke with partial opacity to emphasize the selected flow.
AI-generated descriptionSequence explorer
This example shows how to highlight a path with css styling.
More examples
- single chart
- single chart - JSON version
- hightlight a path
- hightlight a vertical path
- small multiples
- main example
- main example - JSON version
- demo without web server
Link to sequence explorer on github.
The data is obtained (and mapped to the required format) from the sunburst visualization example from Kerry Rodden.
It is easy to see the pros and cons of these two visualizations for this specific data set.