Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ“Š covid: mdims #3489

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions etl/steps/data/garden/covid/latest/cases_deaths.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,16 @@ tables:
presentation:
grapher_config:
title: Week by week change of confirmed COVID-19 cases
subtitle: The weekly growth rate on any given date measures the percentage change in number of confirmed cases over the last seven days relative to the number in the previous seven days.
subtitle: The weekly growth rate measures the percentage change in confirmed cases over the past seven days compared to the seven days before.
hasMapTab: true
map:
colorScale:
customNumericColorsActive: true
binningStrategy: manual
customNumericValues: [-200, -100, -50, -20, 0, 20, 50, 100, 200, 500]
customNumericValues: [-200, -100, -50, -20, 0, 20, 50, 100, 200, 1]
colorSchemeInvert: true
baseColorScheme: RdBu
customNumericMinValue: -1
display:
numDecimalPlaces: 2
tolerance: 30
Expand Down Expand Up @@ -263,15 +264,16 @@ tables:
presentation:
grapher_config:
title: Biweekly change of confirmed COVID-19 cases
subtitle: The biweekly growth rate on any given date measures the percentage change in the number of new confirmed cases over the last 14 days relative to the number in the previous 14 days.
subtitle: The biweekly growth rate measures the percentage change in confirmed cases over the past 14 days compared to the 14 days before.
hasMapTab: true
map:
colorScale:
customNumericColorsActive: true
binningStrategy: manual
customNumericValues: [-200, -100, -40, 0, 40, 100, 200, 400, 1000]
customNumericValues: [-500, -100, -50, 0, 50, 100, 500, 1]
colorSchemeInvert: true
baseColorScheme: RdBu
customNumericMinValue: -1

# Deaths
################
Expand Down
1 change: 1 addition & 0 deletions etl/steps/export/multidim/covid/latest/covid.cases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ definitions:
entity: true
time: true
changeInPrefix: true
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json

title:
title: COVID-19 confirmed cases
Expand Down
2 changes: 2 additions & 0 deletions etl/steps/export/multidim/covid/latest/covid.cases_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ views:
x: grapher/covid/latest/cases_deaths/cases_deaths#new_cases_7_day_avg_right
config:
chartTypes: ["ScatterPlot"]
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
- dimensions:
normalize: per_capita
indicators:
y: grapher/covid/latest/testing/testing#new_tests_per_thousand_7day_smoothed
x: grapher/covid/latest/cases_deaths/cases_deaths#new_cases_per_million_7_day_avg_right
color: 123
config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
chartTypes: ["ScatterPlot"]
map:
colorScale:
Expand Down
4 changes: 4 additions & 0 deletions etl/steps/export/multidim/covid/latest/covid.covax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ views:
chartTypes: ["StackedDiscreteBar"]
sortBy: column
sortColumnSlug: "{definitions.table}#delivered"
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
dimensions:
- property: y
variableId: 988127
Expand Down Expand Up @@ -101,6 +102,7 @@ views:
note: COVAX is a worldwide initiative aimed at equitable access to COVID-19 vaccines. It is directed by Gavi, CEPI, and the WHO. Gross domestic product is expressed in U.S. Dollars; it is sourced from the World Bank and OECD.
originUrl: ourworldindata.org/coronavirus
chartTypes: ["StackedDiscreteBar"]
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json

- dimensions:
normalize: per_dose
Expand All @@ -116,6 +118,7 @@ views:
note: COVAX is a worldwide initiative aimed at equitable access to COVID-19 vaccines. It is directed by Gavi, CEPI, and the WHO. Gross domestic product is expressed in U.S. Dollars; it is sourced from the World Bank and OECD.
originUrl: ourworldindata.org/coronavirus
chartTypes: ["StackedDiscreteBar"]
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json

- dimensions:
normalize: per_gdp
Expand All @@ -131,3 +134,4 @@ views:
note: COVAX is a worldwide initiative aimed at equitable access to COVID-19 vaccines. It is directed by Gavi, CEPI, and the WHO. Gross domestic product is expressed in U.S. Dollars; it is sourced from the World Bank and OECD.
originUrl: ourworldindata.org/coronavirus
chartTypes: ["StackedDiscreteBar"]
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
1 change: 1 addition & 0 deletions etl/steps/export/multidim/covid/latest/covid.deaths.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
definitions:
table: grapher/covid/latest/cases_deaths/cases_deaths
config: &config
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
tab: map
originUrl: ourworldindata.org/coronavirus
hideAnnotationFieldsInTitle:
Expand Down
2 changes: 1 addition & 1 deletion etl/steps/export/multidim/covid/latest/covid.hospital.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
definitions:
table: grapher/covid/latest/hospital/hospital
config: &config
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
hideAnnotationFieldsInTitle:
entity: true
time: true
changeInPrefix: true
originUrl: ourworldindata.org/coronavirus


title:
title: COVID-19 hospitalisations
titleVariant: by type
Expand Down
1 change: 1 addition & 0 deletions etl/steps/export/multidim/covid/latest/covid.mobility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ views:
- "{definitions.table}#trend__place_workplaces"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "How did the number of visitors change since the beginning of the pandemic?"
subtitle: This data shows how community movement in specific locations has changed relative to the period before the pandemic.
note: It's not recommended to compare levels across countries; local differences in categories could be misleading.
Expand Down
4 changes: 4 additions & 0 deletions etl/steps/export/multidim/covid/latest/covid.models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ views:
- "grapher/covid/latest/cases_deaths/cases_deaths#new_cases_7_day_avg_right"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Daily new estimated COVID-19 infections from the ICL model"
subtitle: Estimates of the true number of infections. The "upper" and "lower" lines show the bounds of a 95% uncertainty interval. For comparison, confirmed cases are infections that have been confirmed with a test.
note: This chart shows the model estimates dated 25 December 2022.
Expand All @@ -56,6 +57,7 @@ views:
- "grapher/covid/latest/cases_deaths/cases_deaths#new_cases_7_day_avg_right"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Daily new estimated COVID-19 infections from the IHME model"
subtitle: Estimates of the true number of infections. The "upper" and "lower" lines show the bounds of a 95% uncertainty interval. For comparison, confirmed cases are infections that have been confirmed with a test.
note: This chart shows the model estimates dated 16 December 2022.
Expand All @@ -74,6 +76,7 @@ views:
- "grapher/covid/latest/cases_deaths/cases_deaths#new_cases_7_day_avg_right"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Daily new estimated COVID-19 infections from the LSHTM model"
subtitle: Estimates of the true number of infections. The "upper" and "lower" lines show the bounds of a 95% uncertainty interval. For comparison, confirmed cases are infections that have been confirmed with a test.
note: This chart shows the model estimates dated 25 August 2020.
Expand All @@ -92,6 +95,7 @@ views:
- "grapher/covid/latest/cases_deaths/cases_deaths#new_cases_7_day_avg_right"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Daily new estimated COVID-19 infections from the YYG model"
subtitle: Estimates of the true number of infections. The "upper" and "lower" lines show the bounds of a 95% uncertainty interval. For comparison, confirmed cases are infections that have been confirmed with a test.
note: This chart shows the model estimates dated 4 October 2020. YYG announced that this is the final model update.
Expand Down
2 changes: 0 additions & 2 deletions etl/steps/export/multidim/covid/latest/covid.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def run(dest_dir: str) -> None:
config["views"] += multidim.expand_views(config, {"place": "*"}, table, engine) # type: ignore
multidim.upsert_multidim_data_page(slug, config, engine)

print(1)


def fname_to_slug(fname: str) -> str:
return f"mdd-{fname.replace('.yml', '').replace('.', '-').replace('_', '-')}"
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ dimensions:
name: Manufacturer
description: null


views:
- dimensions:
breakdown: income_group
indicators:
y: "grapher/covid/latest/vaccinations_global/vaccinations_global#total_vaccinations_per_hundred"
config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
addCountryMode: "disabled"
selectedEntityNames:
- High-income countries
Expand All @@ -55,6 +55,7 @@ views:
- "{definitions.table}#total_vaccinations__vaccine_skycovione"
- "{definitions.table}#total_vaccinations__vaccine_valneva"
config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
chartTypes: ["StackedArea"]
selectedEntityNames:
- European Union (27)
5 changes: 4 additions & 1 deletion etl/steps/export/multidim/covid/latest/covid.xm_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ views:
- "{definitions.indicator_confirmed}"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Estimated cumulative excess deaths during COVID-19"
subtitle: For countries that have not reported all-cause mortality data for a given week, an estimate is shown, with uncertainty interval. If reported data is available, that value only is shown. For comparison, cumulative confirmed COVID-19 deaths are shown.
originUrl: ourworldindata.org/coronavirus
hideAnnotationFieldsInTitle:
time: true


# The Economist
- dimensions:
model: econ
Expand All @@ -61,6 +61,7 @@ views:
- "{definitions.indicator_confirmed}"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Estimated cumulative excess deaths during COVID-19"
subtitle: For countries that have not reported all-cause mortality data for a given week, an estimate is shown, with uncertainty interval. If reported data is available, that value only is shown. For comparison, cumulative confirmed COVID-19 deaths are shown.
originUrl: ourworldindata.org/coronavirus
Expand All @@ -78,6 +79,7 @@ views:
- "{definitions.indicator_confirmed}"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Estimated cumulative excess deaths during COVID-19"
subtitle: For countries that have not reported all-cause mortality data for a given week, an estimate is shown, with uncertainty interval. If reported data is available, that value only is shown. For comparison, cumulative confirmed COVID-19 deaths are shown.
originUrl: ourworldindata.org/coronavirus
Expand All @@ -95,6 +97,7 @@ views:
- "{definitions.indicator_confirmed}"

config:
$schema: https://files.ourworldindata.org/schemas/grapher-schema.006.json
title: "Estimated cumulative excess deaths during COVID-19"
subtitle: For countries that have not reported all-cause mortality data for a given week, an estimate is shown, with uncertainty interval. If reported data is available, that value only is shown. For comparison, cumulative confirmed COVID-19 deaths are shown.
originUrl: ourworldindata.org/coronavirus
Expand Down
Loading