Published
Edited
Jun 30, 2017
Insert cell
Insert cell
Insert cell
Insert cell
W = *{
yield window.innerWidth - 20;

var resolve, reject;
window.addEventListener("resize", () => resolve(window.innerWidth - 20));
while (true) yield new Promise((y, n) => (resolve = y, reject = n));
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
zoom_state = *{
yield { cx: 0.5, cy: 0.5, k: 2 };

while(true) {
yield new Promise(function(resolve, reject) {
global.setZoomState = resolve;
});
}
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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