Public
Edited
Sep 28, 2022
3 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// D3 is automatically imported in Observable
//d3 = require("d3")
d3.version
Insert cell
Insert cell
Insert cell
data = await FileAttachment("States2010.csv").csv({ typed: true })
Insert cell
Insert cell
chart = {
// Define SVG tag
// Select the SVG
// MARKS: maps data rows to rects
// CHANNELS: maps data columns to rect attributes
// Interaction
// Tooltip
// return SVG tag
}
Insert cell
Insert cell
chart2 = {
// copy and paste from above
}
Insert cell
Insert cell
Insert cell
// predefined by Observable:
width
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