Published
Edited
Feb 3, 2022
4 forks
38 stars
Insert cell
Insert cell
Insert cell
myData = [
{
Path: "Home > Page A > Page B > Page C"
},
{
Path: "Home > Page A > Page B > Page C > Page C"
},
{
Path: "Home > Page C > Page A > Page C > Page C"
},
{
Path: "Landing A > Page B > Page B > Page C > Page A"
},
{
Path: "Landing B > Page B > Page B > Page C > Page A > Home"
}
]
Insert cell
Insert cell
Insert cell
Insert cell
import {nodes, edges}
with {
myData as selectedData,
process as dataProcess
}
from "@spandl/sankey-vs-tree-data"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const chart = new SankeyPlus.SankeyChart(sankeyConfig);
chart.process();
chart.draw("chart");
return "You just did it!";
}
Insert cell
Insert cell
SankeyPlus = require('sankey-plus@0.3.0/dist/sankeyPlus.js')
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more