This example shows how use a single chart sequence explorer.
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.
xxxxxxxxxx
<meta charset="utf-8"> <!-- also save this file as unicode-8 ! -->
<head>
<link rel="stylesheet" type="text/css" href="https://ee2dev.github.io/libs/sankeySeqExplorer.v20.css">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ee2dev.github.io/libs/sequence-explorer.v20.min.js"></script>
</head>
<body>
<script>
// setup a chart with a json file and add the visualization to a DOM element
// var myChart = sequenceExplorer.chart(); // no parameter when data is embedded in <pre id="data"> tag
var myChart = sequenceExplorer.chart("sequence1.json") // load data from a json file
.eventOrder(["home", "product", "search", "account", "other"]) // changing the order of the events on the y axis
.sequenceName("visit"); // changing the name of the x axis for the tooltip
d3.select("body")
.append("div")
.attr("class", "chart")
.call(myChart);
</script>
</body>
</html>
https://d3js.org/d3.v4.min.js
https://ee2dev.github.io/libs/sequence-explorer.v20.min.js