Public
Edited
May 16, 2023
Insert cell
Insert cell
Insert cell
my_weather_data = FileAttachment("my_weather_data.json").json()
Insert cell
Insert cell
Insert cell
my_weather_data
X
humidity
Y
Color
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
parseDate = d3.timeParse('%Y-%m-%d')
Insert cell
parsedData = my_weather_data.map(data => {
return {...data, date: parseDate(data.date)}
})
Insert cell
Insert cell
Insert cell
parsedData
X
date
Y
temperatureMax
Color
temperatureMax
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
my_weather_data
X
dewPoint
Y
humidity
Color
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
viewof metric = Inputs.select(metrics, { label: "Metric" })
Insert cell
Plot.rectY(my_weather_data, Plot.binX({ y: "count" }, { x: metric })).plot()
Insert cell
metrics = [
"windSpeed",
"moonPhase",
"dewPoint",
"humidity",
"uvIndex",
"windBearing",
"temperatureMin",
"temperatureMax",
"visibility",
"cloudCover"
]
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