d3=require('d3','d3-selection-multi')// note: changing d3 to d3-selection makes this example work
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
d3.select("body").append("div")
.attrs
d3.select("body").append("div")
.attrs({
title:"A cheery, timeless greeting.",
class:"greeting"
})
.text("Hello, world!");
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.