Skip to content

Commit

Permalink
rebase, fix issue with missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Nov 11, 2024
1 parent 2d15813 commit 9d08a35
Show file tree
Hide file tree
Showing 4 changed files with 1,369 additions and 807 deletions.
12 changes: 8 additions & 4 deletions examples/weather/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"type": "module",
"scripts": {
"build": "observable build",
"dev": "observable preview",
"build": "rm -rf dist && observable build",
"postinstall": "ln -sf ../../../../bin/observable-init.js node_modules/.bin/observable"
"deploy": "observable deploy",
"observable": "observable"
},
"dependencies": {
"@observablehq/cli": "link:../.."
"@observablehq/framework": "^1.7.1"
},
"devDependencies": {
"rimraf": "^5.0.5"
},
"engines": {
"node": "^18 <18.19.0 || >=20"
"node": ">=18"
}
}
File renamed without changes.
12 changes: 6 additions & 6 deletions examples/weather/docs/index.md → examples/weather/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ function revive(object, pattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}
y: {grid: true},
marks: [
Plot.ruleY([0, 100]),
Plot.link(data.forecast.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.probabilityOfPrecipitation.value}),
Plot.link(data.forecastHourly.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.probabilityOfPrecipitation.value, stroke: "var(--theme-foreground-focus)"})
Plot.link(data.forecast.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.probabilityOfPrecipitation?.value}),
Plot.link(data.forecastHourly.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.probabilityOfPrecipitation?.value, stroke: "var(--theme-foreground-focus)"})
]
}))
}</div>
Expand All @@ -68,8 +68,8 @@ function revive(object, pattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}
y: {grid: true},
marks: [
Plot.ruleY([0]),
Plot.link(data.forecast.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.dewpoint.value}),
Plot.link(data.forecastHourly.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.dewpoint.value, stroke: "var(--theme-foreground-focus)"})
Plot.link(data.forecast.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.dewpoint?.value}),
Plot.link(data.forecastHourly.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.dewpoint?.value, stroke: "var(--theme-foreground-focus)"})
]
}))
}</div>
Expand All @@ -83,8 +83,8 @@ function revive(object, pattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{2}
y: {grid: true},
marks: [
Plot.ruleY([0]),
Plot.link(data.forecast.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.relativeHumidity.value}),
Plot.link(data.forecastHourly.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.relativeHumidity.value, stroke: "var(--theme-foreground-focus)"})
Plot.link(data.forecast.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.relativeHumidity?.value}),
Plot.link(data.forecastHourly.properties.periods, {x1: "startTime", x2: "endTime", y: (d) => d.relativeHumidity?.value, stroke: "var(--theme-foreground-focus)"})
]
}))
}</div>
Expand Down
Loading

0 comments on commit 9d08a35

Please sign in to comment.