From 68144655f7c9a538ee3be535eaf1660c2c54739d Mon Sep 17 00:00:00 2001 From: Will Searle <5527349+livehybrid@users.noreply.github.com> Date: Wed, 6 Jan 2021 07:10:10 +0000 Subject: [PATCH 1/3] Added Vaccinations datasource --- .gitmodules | 3 +++ git/owid | 1 + 2 files changed, 4 insertions(+) create mode 160000 git/owid diff --git a/.gitmodules b/.gitmodules index e4b2887..4b18432 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "git/coronavirus-data"] path = git/coronavirus-data url = https://github.com/nychealth/coronavirus-data +[submodule "git/owid"] + path = git/owid + url = https://github.com/owid/covid-19-data diff --git a/git/owid b/git/owid new file mode 160000 index 0000000..dbad3f6 --- /dev/null +++ b/git/owid @@ -0,0 +1 @@ +Subproject commit dbad3f6a87b0a4d8fa1976ad96f04de81d5864db From e96e51472c2a885eeae1ad08fd5747f8dcb0acd7 Mon Sep 17 00:00:00 2001 From: Will Searle <5527349+livehybrid@users.noreply.github.com> Date: Wed, 6 Jan 2021 07:11:22 +0000 Subject: [PATCH 2/3] Added vaccinations dashboard --- default/data/ui/nav/default.xml | 1 + default/data/ui/views/vaccinations.xml | 191 +++++++++++++++++++++++++ 2 files changed, 192 insertions(+) create mode 100644 default/data/ui/views/vaccinations.xml diff --git a/default/data/ui/nav/default.xml b/default/data/ui/nav/default.xml index 7c37961..3d63304 100644 --- a/default/data/ui/nav/default.xml +++ b/default/data/ui/nav/default.xml @@ -3,6 +3,7 @@ + diff --git a/default/data/ui/views/vaccinations.xml b/default/data/ui/views/vaccinations.xml new file mode 100644 index 0000000..c7bd78e --- /dev/null +++ b/default/data/ui/views/vaccinations.xml @@ -0,0 +1,191 @@ + + + The data for this dashboard is collated by World in Data. For information on the source data please visit https://github.com/owid/covid-19-data/blob/master/public/data/vaccinations/locations.csv + + + Total Worldwide Vaccinations + + + | inputlookup vaccinations.csv +| rename "location" as Country +| eval _time=strptime(date,"%Y-%m-%d") | search Country="World" +| timechart latest(total_vaccinations) as total_vaccinations by Country |filldown | addtotals | table _time Total + 0 + + 1 + + + + + + + + + + | inputlookup vaccinations.csv +| fields - Lat Long "Province/State" +| rename "location" as Country +| eval _time=strptime(date,"%Y-%m-%d") | search Country!="World" +| timechart latest(total_vaccinations) as total_vaccinations by Country +| filldown * | untable _time Country total_vaccinations +| chart sparkline(avg(total_vaccinations),24h) AS sparkline latest(total_vaccinations) AS "Total Vaccinations" by Country | sort 0 - "Total Vaccinations" + 0 + + 1 + + + + + + + + + +
+
+
+ + + Percentage of Population Vaccinated by Country + + + | inputlookup vaccinations.csv +| eval _time=strptime(date,"%Y-%m-%d") + +| timechart span=1d latest(total_vaccinations_per_hundred) AS total_vaccinations_per_hundred by location +| filldown + 0 + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Total Vaccinations by Country + + + | inputlookup vaccinations.csv +| eval _time=strptime(date,"%Y-%m-%d") + +| timechart span=1d latest(total_vaccinations) AS total_vaccinations by location | filldown + 0 + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Daily Vaccinations + + + | inputlookup vaccinations.csv +| eval _time=strptime(date,"%Y-%m-%d") + +| eval perc_vaccinated=(total_vaccinations/population)*100 +| timechart span=1d latest(daily_vaccinations) AS daily_vaccinations by location + 0 + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
From cddbd7c8401aa03a8a37f7867e60891777304423 Mon Sep 17 00:00:00 2001 From: Will Searle <5527349+livehybrid@users.noreply.github.com> Date: Wed, 6 Jan 2021 07:14:02 +0000 Subject: [PATCH 3/3] Added vaccination symlink --- lookups/vaccinations.csv | 1 + 1 file changed, 1 insertion(+) create mode 120000 lookups/vaccinations.csv diff --git a/lookups/vaccinations.csv b/lookups/vaccinations.csv new file mode 120000 index 0000000..b4a7a2e --- /dev/null +++ b/lookups/vaccinations.csv @@ -0,0 +1 @@ +../git/owid/public/data/vaccinations/vaccinations.csv \ No newline at end of file