Published
Edited
Apr 19, 2018
Insert cell
Insert cell
test = {
const div = d3.select(DOM.element('div'));
const data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

div.selectAll('p')
.data(data)
.enter()
.append('p')
.filter(d => d % 2 === 0)
.html(d => d);
return div.node();
}
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