Published
Edited
Sep 14, 2020
1 fork
Insert cell
Insert cell
svg = {
const svg = html`<svg id = "svg"></svg>`
const container = d3.select(svg)
const pathData = d3.line().x(d => d.x).y(d => d.y)(data)
container.append("path")
.attr("stroke","black")
.attr("fill","none")
.attr("d",pathData)
return svg
}
Insert cell
data = [
{x:300, y:150},
{x:600, y:0},
{x:300, y:300},
{x:0, y:0},
]
Insert cell
Insert cell
Insert cell
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