Public
Edited
Apr 8, 2023
Insert cell
Insert cell
viewof minYear = Inputs.range([1970, 1982], {value: [1970], step: 1, laxbel: "Min Year"})
Insert cell
plot = Plot.plot({
marks: [
Plot.dot(d, {x: "Miles_per_Gallon", y: "Horsepower"})
]
})
Insert cell
d.map(x => +x.Year.slice(0, 4))
Insert cell
table = Inputs.table(d)
Insert cell
y = d.slice(0, 10)
Insert cell
d = r.json()
// d = data['cars.json']()
Insert cell
r = fetch(uri)
Insert cell
// uri = data['cars.json'].url
uri = `http://127.0.0.1:5001/api/${minYear}`
Insert cell
data = require('vega-datasets@2')
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