Published
Edited
Feb 4, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof warmest = Inputs.toggle({label: "Warm"})
Insert cell
viewof topN = Inputs.range([1, 50], {label: "Top N", step: 1, value: 10})
Insert cell
Insert cell
Insert cell
Plot.plot({
width: width,
marginBottom: 40,
color: {
legend: true,
scheme: "BuRd"
},
y: {
axis: null
},
x: {
tickRotate: 45
},
marks: [
Plot.barY(yearlyTemp, {x: "jahr", y: 1, fill: "mean"})
]
})
Insert cell
Insert cell
SummaryTable(dailyCombined)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
grid = {
const svg = d3.create("svg");
new WeatherGrid(svg)
.options({cellColor: "condition", tempScale: "month", dateFormat: "%Y/%m/%d"})
.icon(icon)
.month(monat-1)
.data(dailyCombined.filter(x=>x.Zeit.getFullYear()>2002))
.column({
date: "Datum",
condition: "Kategorie",
low: "Temperatur Min",
high: "Temperatur Max",
avg: "Temperatur"
})
.render();
return svg.node();
}
Insert cell
jahresWerte = dailyCombined.filter(x=>toYear(x.Zeit)===""+jahr)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
tagesDaten = combinedByDay.get(d3.timeFormat("%d.%m.%Y")(tag))
Insert cell
Insert cell
Insert cell
Insert cell
temperatur = FileAttachment("data_OBS_DEU_PT1H_T2M.csv").csv({typed: true})
Insert cell
Insert cell
toYear = d3.timeFormat("%Y")
Insert cell
toYear(dailyTemp[0].tag)
Insert cell
Insert cell
import {combinedByDay, dailyCombined} from "@iimog/wetter-daten-aufbereitung"
Insert cell
Insert cell
Insert cell
import {WeatherGrid} from "@iimog/weather-grid"
Insert cell
import {WeatherChart} from "@analyzer2004/sunny-day-rainy-day-in-seattle"
Insert cell
import {WeatherWheel, icon} from "@analyzer2004/west-coast-weather-from-seattle-to-san-diego"
Insert cell
import {SummaryTable} from "@observablehq/summary-table"
Insert cell
import {T} from "@pbeshai/tidyjs"
Insert cell
import {toc} from "@mbostock/toc"
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