Published
Edited
Sep 16, 2020
Insert cell
Insert cell
Insert cell
Insert cell
points = {
let result = []
lines.forEach(element => {
let pair = element.split(/\s+/);
result.push(pair.map(Number))
})
return result
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
svg = {
let height = width/4;
let radius = 8;
const svg = DOM.svg(width, height);
d3.select(svg)
.data(sorted)
.enter()
.append("circle")
.attr("r", radius)
.attr("fill", "darkblue")
.attr("cx", 10)
.attr("cy", 10);
return svg;
}
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