Published unlisted
Edited
Jun 19, 2019
Insert cell
md`# d3-selection-multi`
Insert cell
d3 = require('d3', 'd3-selection-multi') // note: changing d3 to d3-selection makes this example work
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
d3.select("body").append("div")
.attrs
Insert cell
d3.select("body").append("div")
.attrs({
title: "A cheery, timeless greeting.",
class: "greeting"
})
.text("Hello, world!");
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