Public
Edited
Oct 27, 2023
Insert cell
Insert cell
import {SankeyChart} from "@d3/sankey-component"
Insert cell
Insert cell
chart = SankeyChart({
nodes: data.nodes,
links: data.links,
}, {
nodeAlign: "justify", // e.g., d3.sankeyJustify; set by input above
linkColor: "black", // e.g., "source" or "target"; set by input above
width: 1200,
height: 600
})
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