Public
Edited
Mar 23
1 fork
Importers
4 stars
Insert cell
Insert cell
embed({
data: {url: data['cars.json'].url},
mark: "point",
encoding: {
x: {field: "Horsepower", type: "quantitative"},
y: {field: "Miles_per_Gallon", type: "quantitative"}
}
})
Insert cell
data['cars.json'].url
Insert cell
data.version
Insert cell
data = (await import('https://cdn.jsdelivr.net/npm/vega-datasets@3/+esm')).default
Insert cell
// directly load the csv data
airports = data['airports.csv']()
Insert cell
// directly load the json data
cars = data['cars.json']()
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