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/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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 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