Public
Edited
Jan 26, 2023
Insert cell
Insert cell
chart = SankeyChart(
{
links: sankeyData
},
{
nodeGroup: (d) => {
let id = d.id.replace("→", "").trim();
console.log(id);
return id;
}, // take first word for color
//nodeAlign, // e.g., d3.sankeyJustify; set by input above
//linkColor, // e.g., "source" or "target"; set by input above
width,
height: 600
}
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
//DOM.download(serialize(datiPerAlluvial), "deputati", "Download CSV")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
check = deputati.filter((d) => d.cognome == "GRIMALDI")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import { SankeyChart } from "@d3/sankey"
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