Published
Edited
Sep 25, 2019
Insert cell
Insert cell
alphabet = require('@observablehq/alphabet')
Insert cell
vegalite = require('@observablehq/vega-lite')
Insert cell
vegalite({
data: { values: alphabet },
mark: "bar",
width: width,
autosize: "fit",
encoding: {
x: {
field: "letter",
type: "ordinal"
},
y: {
field: "frequency"
}
}
})
Insert cell
Insert cell
function* intergers() {
let i = -1;
while(true) {
yield ++i;
}
}
Insert cell
Insert cell
inputValue = Generators.input(input);
Insert cell
Generators.queue(notify => {
const mousemoved = event => notify([event.clientX, event.clientY]);
window.addEventListener("mousemove", mousemoved);
return () => window.removeEventListener("mousemove", mousemoved);
})
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