Public
Edited
Jun 6, 2024
1 fork
Insert cell
Insert cell
Inputs.table(data, { rows: 30 })
Insert cell
weather.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
weather.csv
X
precipitation
Y
temp_max
Color
wind
Size
Facet X
Facet Y
location
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
weather.csv
X
date
Y
temp_max
Color
wind
Size
Facet X
Facet Y
location
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
example = Plot.plot({
color: { legend: true },
title: "Weather example",
subtitle: "PhD Seminar",
caption: "Graphics are fun!",
marks: [
Plot.frame({ strokeOpacity: 0.1 }),
Plot.dot(await FileAttachment("weather.csv").csv({ typed: "auto" }), {
fy: "location",
x: "date",
y: "temp_max",
stroke: "wind",
tip: true
})
]
})
Insert cell
Plot.plot({
color: { legend: true },
marks: [
Plot.dot(await FileAttachment("weather.csv").csv({ typed: "auto" }), {
x: "date",
y: "temp_max",
stroke: "location",
tip: true
}),
Plot.axisY({ label: "Max temperature in C" })
]
})
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
FileAttachment("weather.csv").csv()
Insert cell
data = await aq.fromCSV(await FileAttachment("weather.csv").text())
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more