Public
Edited
Jan 12, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
colorScale = d3
.scaleOrdinal()
.domain(d3.groups(data, (d) => d.Source).map((d) => d[0]))
.range(["#ec008c", "#42e100", "#00aeef"])
Insert cell
weightLineScale = d3
.scaleLinear()
.domain(
d3.extent(network.edges, function (d) {
return d.weight;
})
)
.range([0.25, 8])
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