.on("click",event=>event.currentTarget.textContent=`click at ${d3.pointer(event)}`)
.text("click me")
.node()
d3.create("ul")
.call(ul=>ul
.selectChildren()
.data([1,2,3])
.join("li")
.text(d=>d))
.node()
d3.selection().merge(d3.transition())
d3.selection().merge(d3.transition().selection())
{
consts=d3.selection();
returns.selection()===s;
}
d3=require("d3-selection@2","d3-transition@2")
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.