From fed44bbdeaed9b5c1dd84d8288b96b5ad11e891a Mon Sep 17 00:00:00 2001 From: Marcel Gerber Date: Thu, 25 Jul 2024 20:41:02 +0100 Subject: [PATCH] feat(multi-dim): change indicator config format --- baker/MultiDimBaker.tsx | 81 +- public/multi-dim/causes-of-death.yml | 3283 +++++++++--------- public/multi-dim/energy.yml | 16 +- public/multi-dim/life-expectancy.json | 24 +- public/multi-dim/plastic.json | 6 +- public/multi-dim/poverty.yml | 117 +- site/multiDim/MultiDimDataPageConfig.test.ts | 30 +- site/multiDim/MultiDimDataPageConfig.ts | 55 +- site/multiDim/MultiDimDataPageContent.tsx | 35 +- site/multiDim/MultiDimDataPageTypes.ts | 26 +- site/multiDim/config.yml | 6 +- 11 files changed, 1872 insertions(+), 1807 deletions(-) diff --git a/baker/MultiDimBaker.tsx b/baker/MultiDimBaker.tsx index 6d5190487b7..f3d876d7219 100644 --- a/baker/MultiDimBaker.tsx +++ b/baker/MultiDimBaker.tsx @@ -2,7 +2,13 @@ import yaml from "yaml" import fs from "fs-extra" import path from "path" import findProjectBaseDir from "../settings/findBaseDir.js" -import { MultiDimDataPageConfigType } from "../site/multiDim/MultiDimDataPageTypes.js" +import { + IndicatorEntryAfterPreProcessing, + IndicatorEntryBeforePreProcessing, + MultiDimDataPageConfigPreProcessed, + MultiDimDataPageConfigRaw, + MultiIndicatorEntry, +} from "../site/multiDim/MultiDimDataPageTypes.js" import { MultiDimDataPageConfig } from "../site/multiDim/MultiDimDataPageConfig.js" import * as db from "../db/db.js" import { renderToHtmlPage } from "./siteRenderers.js" @@ -10,6 +16,7 @@ import { MultiDimDataPage } from "../site/multiDim/MultiDimDataPage.js" import React from "react" import { BAKED_BASE_URL } from "../settings/clientSettings.js" import { getTagToSlugMap } from "./GrapherBakingUtils.js" +import { getVariableIdsByCatalogPath } from "../db/model/Variable.js" // TODO Make this dynamic const baseDir = findProjectBaseDir(__dirname) @@ -21,7 +28,7 @@ const readMultiDimConfig = (filename: string) => fs.readFileSync(path.join(MULTI_DIM_CONFIG_DIR, filename), "utf8") ) -const MULTI_DIM_SITES_BY_SLUG: Record = { +const MULTI_DIM_SITES_BY_SLUG: Record = { "mdd-causes-of-death": readMultiDimConfig("causes-of-death.yml"), "mdd-energy": readMultiDimConfig("energy.yml"), "mdd-life-expectancy": readMultiDimConfig("life-expectancy.json"), @@ -33,6 +40,72 @@ interface BakingAdditionalContext { tagToSlugMap: Record } +const resolveMultiDimDataPageCatalogPathsToIndicatorIds = async ( + knex: db.KnexReadonlyTransaction, + rawConfig: MultiDimDataPageConfigRaw +): Promise => { + const allCatalogPaths = rawConfig.views + .flatMap((view) => + Object.values(view.indicators).flatMap((indicatorOrIndicators) => + Array.isArray(indicatorOrIndicators) + ? indicatorOrIndicators + : [indicatorOrIndicators] + ) + ) + .filter((indicator) => typeof indicator === "string") + + const catalogPathToIndicatorIdMap = await getVariableIdsByCatalogPath( + allCatalogPaths, + knex + ) + + const missingCatalogPaths = new Set( + allCatalogPaths.filter( + (indicator) => !catalogPathToIndicatorIdMap.has(indicator) + ) + ) + + if (missingCatalogPaths.size > 0) { + console.warn( + `Could not find the following catalog paths in the database: ${Array.from( + missingCatalogPaths + ).join(", ")}` + ) + } + + const resolveSingleField = ( + indicator: IndicatorEntryBeforePreProcessing + ) => { + if (typeof indicator === "string") { + const indicatorId = catalogPathToIndicatorIdMap.get(indicator) + return indicatorId ?? undefined + } else { + return indicator + } + } + + const resolveField = ( + indicator: MultiIndicatorEntry + ): MultiIndicatorEntry => { + if (Array.isArray(indicator)) { + return indicator.map(resolveSingleField) + } else { + return resolveSingleField(indicator) + } + } + + for (const view of rawConfig.views) { + view.indicators = Object.fromEntries( + Object.entries(view.indicators).map(([key, value]) => [ + key, + resolveField(value), + ]) + ) as any + } + + return rawConfig as MultiDimDataPageConfigPreProcessed +} + export const renderMultiDimDataPageBySlug = async ( knex: db.KnexReadonlyTransaction, slug: string @@ -43,7 +116,9 @@ export const renderMultiDimDataPageBySlug = async ( const tagToSlugMap = await getTagToSlugMap(knex) const bakingContext = { tagToSlugMap } - const config = MultiDimDataPageConfig.fromObject(rawConfig) + const preProcessedConfig = + await resolveMultiDimDataPageCatalogPathsToIndicatorIds(knex, rawConfig) + const config = MultiDimDataPageConfig.fromObject(preProcessedConfig) return renderMultiDimDataPage(config, bakingContext) } diff --git a/public/multi-dim/causes-of-death.yml b/public/multi-dim/causes-of-death.yml index 6ee6c99934d..5c42fcfc04b 100644 --- a/public/multi-dim/causes-of-death.yml +++ b/public/multi-dim/causes-of-death.yml @@ -142,3863 +142,3882 @@ views: age: 15-49 years cause: Cardiovascular diseases metric: Number - indicator_path: - 917705: y + indicators: + y: 917705 - dimensions: age: 15-49 years cause: Neoplasms metric: Number - indicator_path: - 918245: y + indicators: + y: 918245 - dimensions: age: 15-49 years cause: Chronic respiratory diseases metric: Number - indicator_path: - 917770: y + indicators: + y: 917770 - dimensions: age: 15-49 years cause: Digestive diseases metric: Number - indicator_path: - 917862: y + indicators: + y: 917862 - dimensions: age: 15-49 years cause: Lower respiratory infections metric: Number - indicator_path: - 918135: y + indicators: + y: 918135 - dimensions: age: 15-49 years cause: Alzheimer's disease and other dementias metric: Number - indicator_path: - 917635: y + indicators: + y: 917635 - dimensions: age: 15-49 years cause: Diabetes mellitus metric: Number - indicator_path: - 917846: y + indicators: + y: 917846 - dimensions: age: 15-49 years cause: Diarrheal diseases metric: Number - indicator_path: - 917856: y + indicators: + y: 917856 - dimensions: age: 15-49 years cause: Meningitis metric: Number - indicator_path: - 918186: y + indicators: + y: 918186 - dimensions: age: 15-49 years cause: Parkinson's disease metric: Number - indicator_path: - 918482: y + indicators: + y: 918482 - dimensions: age: 15-49 years cause: Nutritional deficiencies metric: Number - indicator_path: - 918302: y + indicators: + y: 918302 - dimensions: age: 15-49 years cause: Malaria metric: Number - indicator_path: - 918139: y + indicators: + y: 918139 - dimensions: age: 15-49 years cause: Drowning metric: Number - indicator_path: - 917874: y + indicators: + y: 917874 - dimensions: age: 15-49 years cause: Interpersonal violence metric: Number - indicator_path: - 918052: y + indicators: + y: 918052 - dimensions: age: 15-49 years cause: Maternal disorders metric: Number - indicator_path: - 918163: y + indicators: + y: 918163 - dimensions: age: 15-49 years cause: HIV/AIDS metric: Number - indicator_path: - 917997: y + indicators: + y: 917997 - dimensions: age: 15-49 years cause: Drug use disorders metric: Number - indicator_path: - 917880: y + indicators: + y: 917880 - dimensions: age: 15-49 years cause: Tuberculosis metric: Number - indicator_path: - 918679: y + indicators: + y: 918679 - dimensions: age: 15-49 years cause: Alcohol use disorders metric: Number - indicator_path: - 917621: y + indicators: + y: 917621 - dimensions: age: 15-49 years cause: Self-harm metric: Number - indicator_path: - 918578: y + indicators: + y: 918578 - dimensions: age: 15-49 years cause: Exposure to forces of nature metric: Number - indicator_path: - 917931: y + indicators: + y: 917931 - dimensions: age: 15-49 years cause: Environmental heat and cold exposure metric: Number - indicator_path: - 917923: y + indicators: + y: 917923 - dimensions: age: 15-49 years cause: Conflict and terrorism metric: Number - indicator_path: - 917804: y + indicators: + y: 917804 - dimensions: age: 15-49 years cause: Chronic kidney disease metric: Number - indicator_path: - 917733: y + indicators: + y: 917733 - dimensions: age: 15-49 years cause: Poisonings metric: Number - indicator_path: - 918524: y + indicators: + y: 918524 - dimensions: age: 15-49 years cause: Road injuries metric: Number - indicator_path: - 918569: y + indicators: + y: 918569 - dimensions: age: 15-49 years cause: Fire, heat, and hot substances metric: Number - indicator_path: - 917954: y + indicators: + y: 917954 - dimensions: age: 15-49 years cause: Acute hepatitis metric: Number - indicator_path: - 917583: y + indicators: + y: 917583 - dimensions: age: 15-49 years cause: COVID-19 metric: Number - indicator_path: - 917697: y + indicators: + y: 917697 - dimensions: age: 15-49 years cause: all metric: Number - indicator_path: - 917583: y - 917621: y - 917635: y - 917697: y - 917705: y - 917733: y - 917770: y - 917804: y - 917846: y - 917856: y - 917862: y - 917874: y - 917880: y - 917923: y - 917931: y - 917954: y - 917997: y - 918052: y - 918135: y - 918139: y - 918163: y - 918186: y - 918245: y - 918302: y - 918482: y - 918524: y - 918569: y - 918578: y - 918679: y + indicators: + y: + - 917583 + - 917621 + - 917635 + - 917697 + - 917705 + - 917733 + - 917770 + - 917804 + - 917846 + - 917856 + - 917862 + - 917874 + - 917880 + - 917923 + - 917931 + - 917954 + - 917997 + - 918052 + - 918135 + - 918139 + - 918163 + - 918186 + - 918245 + - 918302 + - 918482 + - 918524 + - 918569 + - 918578 + - 918679 - dimensions: age: 15-49 years cause: Cardiovascular diseases metric: Percent - indicator_path: - 923608: y + indicators: + y: 923608 - dimensions: age: 15-49 years cause: Neoplasms metric: Percent - indicator_path: - 923878: y + indicators: + y: 923878 - dimensions: age: 15-49 years cause: Chronic respiratory diseases metric: Percent - indicator_path: - 923642: y + indicators: + y: 923642 - dimensions: age: 15-49 years cause: Digestive diseases metric: Percent - indicator_path: - 923691: y + indicators: + y: 923691 - dimensions: age: 15-49 years cause: Lower respiratory infections metric: Percent - indicator_path: - 923825: y + indicators: + y: 923825 - dimensions: age: 15-49 years cause: Alzheimer's disease and other dementias metric: Percent - indicator_path: - 923573: y + indicators: + y: 923573 - dimensions: age: 15-49 years cause: Diabetes mellitus metric: Percent - indicator_path: - 923681: y + indicators: + y: 923681 - dimensions: age: 15-49 years cause: Diarrheal diseases metric: Percent - indicator_path: - 923686: y + indicators: + y: 923686 - dimensions: age: 15-49 years cause: Meningitis metric: Percent - indicator_path: - 923849: y + indicators: + y: 923849 - dimensions: age: 15-49 years cause: Parkinson's disease metric: Percent - indicator_path: - 923995: y + indicators: + y: 923995 - dimensions: age: 15-49 years cause: Nutritional deficiencies metric: Percent - indicator_path: - 923904: y + indicators: + y: 923904 - dimensions: age: 15-49 years cause: Malaria metric: Percent - indicator_path: - 923823: y + indicators: + y: 923823 - dimensions: age: 15-49 years cause: Drowning metric: Percent - indicator_path: - 923696: y + indicators: + y: 923696 - dimensions: age: 15-49 years cause: Interpersonal violence metric: Percent - indicator_path: - 923781: y + indicators: + y: 923781 - dimensions: age: 15-49 years cause: Maternal disorders metric: Percent - indicator_path: - 923836: y + indicators: + y: 923836 - dimensions: age: 15-49 years cause: HIV/AIDS metric: Percent - indicator_path: - 923753: y + indicators: + y: 923753 - dimensions: age: 15-49 years cause: Drug use disorders metric: Percent - indicator_path: - 923699: y + indicators: + y: 923699 - dimensions: age: 15-49 years cause: Tuberculosis metric: Percent - indicator_path: - 924091: y + indicators: + y: 924091 - dimensions: age: 15-49 years cause: Alcohol use disorders metric: Percent - indicator_path: - 923568: y + indicators: + y: 923568 - dimensions: age: 15-49 years cause: Self-harm metric: Percent - indicator_path: - 924041: y + indicators: + y: 924041 - dimensions: age: 15-49 years cause: Exposure to forces of nature metric: Percent - indicator_path: - 923724: y + indicators: + y: 923724 - dimensions: age: 15-49 years cause: Environmental heat and cold exposure metric: Percent - indicator_path: - 923720: y + indicators: + y: 923720 - dimensions: age: 15-49 years cause: Conflict and terrorism metric: Percent - indicator_path: - 923659: y + indicators: + y: 923659 - dimensions: age: 15-49 years cause: Chronic kidney disease metric: Percent - indicator_path: - 923623: y + indicators: + y: 923623 - dimensions: age: 15-49 years cause: Poisonings metric: Percent - indicator_path: - 924013: y + indicators: + y: 924013 - dimensions: age: 15-49 years cause: Road injuries metric: Percent - indicator_path: - 924038: y + indicators: + y: 924038 - dimensions: age: 15-49 years cause: Fire, heat, and hot substances metric: Percent - indicator_path: - 923733: y + indicators: + y: 923733 - dimensions: age: 15-49 years cause: Acute hepatitis metric: Percent - indicator_path: - 923549: y + indicators: + y: 923549 - dimensions: age: 15-49 years cause: COVID-19 metric: Percent - indicator_path: - 923603: y + indicators: + y: 923603 - dimensions: age: 15-49 years cause: all metric: Percent - indicator_path: - 923549: y - 923568: y - 923573: y - 923603: y - 923608: y - 923623: y - 923642: y - 923659: y - 923681: y - 923686: y - 923691: y - 923696: y - 923699: y - 923720: y - 923724: y - 923733: y - 923753: y - 923781: y - 923823: y - 923825: y - 923836: y - 923849: y - 923878: y - 923904: y - 923995: y - 924013: y - 924038: y - 924041: y - 924091: y + indicators: + y: + - 923549 + - 923568 + - 923573 + - 923603 + - 923608 + - 923623 + - 923642 + - 923659 + - 923681 + - 923686 + - 923691 + - 923696 + - 923699 + - 923720 + - 923724 + - 923733 + - 923753 + - 923781 + - 923823 + - 923825 + - 923836 + - 923849 + - 923878 + - 923904 + - 923995 + - 924013 + - 924038 + - 924041 + - 924091 - dimensions: age: 15-49 years cause: Cardiovascular diseases metric: Rate - indicator_path: - 926847: y + indicators: + y: 926847 - dimensions: age: 15-49 years cause: Neoplasms metric: Rate - indicator_path: - 927118: y + indicators: + y: 927118 - dimensions: age: 15-49 years cause: Chronic respiratory diseases metric: Rate - indicator_path: - 926880: y + indicators: + y: 926880 - dimensions: age: 15-49 years cause: Digestive diseases metric: Rate - indicator_path: - 926928: y + indicators: + y: 926928 - dimensions: age: 15-49 years cause: Lower respiratory infections metric: Rate - indicator_path: - 927061: y + indicators: + y: 927061 - dimensions: age: 15-49 years cause: Alzheimer's disease and other dementias metric: Rate - indicator_path: - 926811: y + indicators: + y: 926811 - dimensions: age: 15-49 years cause: Diabetes mellitus metric: Rate - indicator_path: - 926916: y + indicators: + y: 926916 - dimensions: age: 15-49 years cause: Diarrheal diseases metric: Rate - indicator_path: - 926922: y + indicators: + y: 926922 - dimensions: age: 15-49 years cause: Meningitis metric: Rate - indicator_path: - 927088: y + indicators: + y: 927088 - dimensions: age: 15-49 years cause: Parkinson's disease metric: Rate - indicator_path: - 927235: y + indicators: + y: 927235 - dimensions: age: 15-49 years cause: Nutritional deficiencies metric: Rate - indicator_path: - 927145: y + indicators: + y: 927145 - dimensions: age: 15-49 years cause: Malaria metric: Rate - indicator_path: - 927063: y + indicators: + y: 927063 - dimensions: age: 15-49 years cause: Drowning metric: Rate - indicator_path: - 926933: y + indicators: + y: 926933 - dimensions: age: 15-49 years cause: Interpersonal violence metric: Rate - indicator_path: - 927021: y + indicators: + y: 927021 - dimensions: age: 15-49 years cause: Maternal disorders metric: Rate - indicator_path: - 927078: y + indicators: + y: 927078 - dimensions: age: 15-49 years cause: HIV/AIDS metric: Rate - indicator_path: - 926991: y + indicators: + y: 926991 - dimensions: age: 15-49 years cause: Drug use disorders metric: Rate - indicator_path: - 926935: y + indicators: + y: 926935 - dimensions: age: 15-49 years cause: Tuberculosis metric: Rate - indicator_path: - 927335: y + indicators: + y: 927335 - dimensions: age: 15-49 years cause: Alcohol use disorders metric: Rate - indicator_path: - 926804: y + indicators: + y: 926804 - dimensions: age: 15-49 years cause: Self-harm metric: Rate - indicator_path: - 927280: y + indicators: + y: 927280 - dimensions: age: 15-49 years cause: Exposure to forces of nature metric: Rate - indicator_path: - 926960: y + indicators: + y: 926960 - dimensions: age: 15-49 years cause: Environmental heat and cold exposure metric: Rate - indicator_path: - 926956: y + indicators: + y: 926956 - dimensions: age: 15-49 years cause: Conflict and terrorism metric: Rate - indicator_path: - 926896: y + indicators: + y: 926896 - dimensions: age: 15-49 years cause: Chronic kidney disease metric: Rate - indicator_path: - 926861: y + indicators: + y: 926861 - dimensions: age: 15-49 years cause: Poisonings metric: Rate - indicator_path: - 927255: y + indicators: + y: 927255 - dimensions: age: 15-49 years cause: Road injuries metric: Rate - indicator_path: - 927277: y + indicators: + y: 927277 - dimensions: age: 15-49 years cause: Fire, heat, and hot substances metric: Rate - indicator_path: - 926971: y + indicators: + y: 926971 - dimensions: age: 15-49 years cause: Acute hepatitis metric: Rate - indicator_path: - 926786: y + indicators: + y: 926786 - dimensions: age: 15-49 years cause: COVID-19 metric: Rate - indicator_path: - 926842: y + indicators: + y: 926842 - dimensions: age: 15-49 years cause: all metric: Rate - indicator_path: - 926786: y - 926804: y - 926811: y - 926842: y - 926847: y - 926861: y - 926880: y - 926896: y - 926916: y - 926922: y - 926928: y - 926933: y - 926935: y - 926956: y - 926960: y - 926971: y - 926991: y - 927021: y - 927061: y - 927063: y - 927078: y - 927088: y - 927118: y - 927145: y - 927235: y - 927255: y - 927277: y - 927280: y - 927335: y + indicators: + y: + - 926786 + - 926804 + - 926811 + - 926842 + - 926847 + - 926861 + - 926880 + - 926896 + - 926916 + - 926922 + - 926928 + - 926933 + - 926935 + - 926956 + - 926960 + - 926971 + - 926991 + - 927021 + - 927061 + - 927063 + - 927078 + - 927088 + - 927118 + - 927145 + - 927235 + - 927255 + - 927277 + - 927280 + - 927335 - dimensions: age: 5-14 years cause: Cardiovascular diseases metric: Number - indicator_path: - 918855: y + indicators: + y: 918855 - dimensions: age: 5-14 years cause: Neoplasms metric: Number - indicator_path: - 919321: y + indicators: + y: 919321 - dimensions: age: 5-14 years cause: Chronic respiratory diseases metric: Number - indicator_path: - 918900: y + indicators: + y: 918900 - dimensions: age: 5-14 years cause: Digestive diseases metric: Number - indicator_path: - 918980: y + indicators: + y: 918980 - dimensions: age: 5-14 years cause: Lower respiratory infections metric: Number - indicator_path: - 919219: y + indicators: + y: 919219 - dimensions: age: 5-14 years cause: Diabetes mellitus metric: Number - indicator_path: - 918961: y + indicators: + y: 918961 - dimensions: age: 5-14 years cause: Diarrheal diseases metric: Number - indicator_path: - 918970: y + indicators: + y: 918970 - dimensions: age: 5-14 years cause: Meningitis metric: Number - indicator_path: - 919268: y + indicators: + y: 919268 - dimensions: age: 5-14 years cause: Nutritional deficiencies metric: Number - indicator_path: - 919350: y + indicators: + y: 919350 - dimensions: age: 5-14 years cause: Malaria metric: Number - indicator_path: - 919224: y + indicators: + y: 919224 - dimensions: age: 5-14 years cause: Drowning metric: Number - indicator_path: - 918991: y + indicators: + y: 918991 - dimensions: age: 5-14 years cause: Interpersonal violence metric: Number - indicator_path: - 919160: y + indicators: + y: 919160 - dimensions: age: 5-14 years cause: Maternal disorders metric: Number - indicator_path: - 919243: y + indicators: + y: 919243 - dimensions: age: 5-14 years cause: HIV/AIDS metric: Number - indicator_path: - 919102: y + indicators: + y: 919102 - dimensions: age: 5-14 years cause: Drug use disorders metric: Number - indicator_path: - 918996: y + indicators: + y: 918996 - dimensions: age: 5-14 years cause: Tuberculosis metric: Number - indicator_path: - 919679: y + indicators: + y: 919679 - dimensions: age: 5-14 years cause: Alcohol use disorders metric: Number - indicator_path: - 918798: y + indicators: + y: 918798 - dimensions: age: 5-14 years cause: Self-harm metric: Number - indicator_path: - 919600: y + indicators: + y: 919600 - dimensions: age: 5-14 years cause: Exposure to forces of nature metric: Number - indicator_path: - 919043: y + indicators: + y: 919043 - dimensions: age: 5-14 years cause: Environmental heat and cold exposure metric: Number - indicator_path: - 919038: y + indicators: + y: 919038 - dimensions: age: 5-14 years cause: Conflict and terrorism metric: Number - indicator_path: - 918920: y + indicators: + y: 918920 - dimensions: age: 5-14 years cause: Chronic kidney disease metric: Number - indicator_path: - 918881: y + indicators: + y: 918881 - dimensions: age: 5-14 years cause: Poisonings metric: Number - indicator_path: - 919543: y + indicators: + y: 919543 - dimensions: age: 5-14 years cause: Road injuries metric: Number - indicator_path: - 919589: y + indicators: + y: 919589 - dimensions: age: 5-14 years cause: Fire, heat, and hot substances metric: Number - indicator_path: - 919063: y + indicators: + y: 919063 - dimensions: age: 5-14 years cause: Acute hepatitis metric: Number - indicator_path: - 918764: y + indicators: + y: 918764 - dimensions: age: 5-14 years cause: COVID-19 metric: Number - indicator_path: - 918843: y + indicators: + y: 918843 - dimensions: age: 5-14 years cause: all metric: Number - indicator_path: - 918764: y - 918798: y - 918843: y - 918855: y - 918881: y - 918900: y - 918920: y - 918961: y - 918970: y - 918980: y - 918991: y - 918996: y - 919038: y - 919043: y - 919063: y - 919102: y - 919160: y - 919219: y - 919224: y - 919243: y - 919268: y - 919321: y - 919350: y - 919543: y - 919589: y - 919600: y - 919679: y + indicators: + y: + - 918764 + - 918798 + - 918843 + - 918855 + - 918881 + - 918900 + - 918920 + - 918961 + - 918970 + - 918980 + - 918991 + - 918996 + - 919038 + - 919043 + - 919063 + - 919102 + - 919160 + - 919219 + - 919224 + - 919243 + - 919268 + - 919321 + - 919350 + - 919543 + - 919589 + - 919600 + - 919679 - dimensions: age: 5-14 years cause: Cardiovascular diseases metric: Percent - indicator_path: - 924180: y + indicators: + y: 924180 - dimensions: age: 5-14 years cause: Neoplasms metric: Percent - indicator_path: - 924410: y + indicators: + y: 924410 - dimensions: age: 5-14 years cause: Chronic respiratory diseases metric: Percent - indicator_path: - 924202: y + indicators: + y: 924202 - dimensions: age: 5-14 years cause: Digestive diseases metric: Percent - indicator_path: - 924241: y + indicators: + y: 924241 - dimensions: age: 5-14 years cause: Lower respiratory infections metric: Percent - indicator_path: - 924360: y + indicators: + y: 924360 - dimensions: age: 5-14 years cause: Diabetes mellitus metric: Percent - indicator_path: - 924233: y + indicators: + y: 924233 - dimensions: age: 5-14 years cause: Diarrheal diseases metric: Percent - indicator_path: - 924237: y + indicators: + y: 924237 - dimensions: age: 5-14 years cause: Meningitis metric: Percent - indicator_path: - 924385: y + indicators: + y: 924385 - dimensions: age: 5-14 years cause: Nutritional deficiencies metric: Percent - indicator_path: - 924424: y + indicators: + y: 924424 - dimensions: age: 5-14 years cause: Malaria metric: Percent - indicator_path: - 924363: y + indicators: + y: 924363 - dimensions: age: 5-14 years cause: Drowning metric: Percent - indicator_path: - 924247: y + indicators: + y: 924247 - dimensions: age: 5-14 years cause: Interpersonal violence metric: Percent - indicator_path: - 924330: y + indicators: + y: 924330 - dimensions: age: 5-14 years cause: Maternal disorders metric: Percent - indicator_path: - 924373: y + indicators: + y: 924373 - dimensions: age: 5-14 years cause: HIV/AIDS metric: Percent - indicator_path: - 924302: y + indicators: + y: 924302 - dimensions: age: 5-14 years cause: Drug use disorders metric: Percent - indicator_path: - 924249: y + indicators: + y: 924249 - dimensions: age: 5-14 years cause: Tuberculosis metric: Percent - indicator_path: - 924590: y + indicators: + y: 924590 - dimensions: age: 5-14 years cause: Alcohol use disorders metric: Percent - indicator_path: - 924151: y + indicators: + y: 924151 - dimensions: age: 5-14 years cause: Self-harm metric: Percent - indicator_path: - 924548: y + indicators: + y: 924548 - dimensions: age: 5-14 years cause: Exposure to forces of nature metric: Percent - indicator_path: - 924273: y + indicators: + y: 924273 - dimensions: age: 5-14 years cause: Environmental heat and cold exposure metric: Percent - indicator_path: - 924270: y + indicators: + y: 924270 - dimensions: age: 5-14 years cause: Conflict and terrorism metric: Percent - indicator_path: - 924212: y + indicators: + y: 924212 - dimensions: age: 5-14 years cause: Chronic kidney disease metric: Percent - indicator_path: - 924192: y + indicators: + y: 924192 - dimensions: age: 5-14 years cause: Poisonings metric: Percent - indicator_path: - 924521: y + indicators: + y: 924521 - dimensions: age: 5-14 years cause: Road injuries metric: Percent - indicator_path: - 924544: y + indicators: + y: 924544 - dimensions: age: 5-14 years cause: Fire, heat, and hot substances metric: Percent - indicator_path: - 924283: y + indicators: + y: 924283 - dimensions: age: 5-14 years cause: Acute hepatitis metric: Percent - indicator_path: - 924134: y + indicators: + y: 924134 - dimensions: age: 5-14 years cause: COVID-19 metric: Percent - indicator_path: - 924175: y + indicators: + y: 924175 - dimensions: age: 5-14 years cause: all metric: Percent - indicator_path: - 924134: y - 924151: y - 924175: y - 924180: y - 924192: y - 924202: y - 924212: y - 924233: y - 924237: y - 924241: y - 924247: y - 924249: y - 924270: y - 924273: y - 924283: y - 924302: y - 924330: y - 924360: y - 924363: y - 924373: y - 924385: y - 924410: y - 924424: y - 924521: y - 924544: y - 924548: y - 924590: y + indicators: + y: + - 924134 + - 924151 + - 924175 + - 924180 + - 924192 + - 924202 + - 924212 + - 924233 + - 924237 + - 924241 + - 924247 + - 924249 + - 924270 + - 924273 + - 924283 + - 924302 + - 924330 + - 924360 + - 924363 + - 924373 + - 924385 + - 924410 + - 924424 + - 924521 + - 924544 + - 924548 + - 924590 - dimensions: age: 5-14 years cause: Cardiovascular diseases metric: Rate - indicator_path: - 927421: y + indicators: + y: 927421 - dimensions: age: 5-14 years cause: Neoplasms metric: Rate - indicator_path: - 927650: y + indicators: + y: 927650 - dimensions: age: 5-14 years cause: Chronic respiratory diseases metric: Rate - indicator_path: - 927442: y + indicators: + y: 927442 - dimensions: age: 5-14 years cause: Digestive diseases metric: Rate - indicator_path: - 927481: y + indicators: + y: 927481 - dimensions: age: 5-14 years cause: Lower respiratory infections metric: Rate - indicator_path: - 927600: y + indicators: + y: 927600 - dimensions: age: 5-14 years cause: Diabetes mellitus metric: Rate - indicator_path: - 927473: y + indicators: + y: 927473 - dimensions: age: 5-14 years cause: Diarrheal diseases metric: Rate - indicator_path: - 927477: y + indicators: + y: 927477 - dimensions: age: 5-14 years cause: Meningitis metric: Rate - indicator_path: - 927625: y + indicators: + y: 927625 - dimensions: age: 5-14 years cause: Nutritional deficiencies metric: Rate - indicator_path: - 927664: y + indicators: + y: 927664 - dimensions: age: 5-14 years cause: Malaria metric: Rate - indicator_path: - 927602: y + indicators: + y: 927602 - dimensions: age: 5-14 years cause: Drowning metric: Rate - indicator_path: - 927487: y + indicators: + y: 927487 - dimensions: age: 5-14 years cause: Interpersonal violence metric: Rate - indicator_path: - 927571: y + indicators: + y: 927571 - dimensions: age: 5-14 years cause: Maternal disorders metric: Rate - indicator_path: - 927614: y + indicators: + y: 927614 - dimensions: age: 5-14 years cause: HIV/AIDS metric: Rate - indicator_path: - 927542: y + indicators: + y: 927542 - dimensions: age: 5-14 years cause: Drug use disorders metric: Rate - indicator_path: - 927489: y + indicators: + y: 927489 - dimensions: age: 5-14 years cause: Tuberculosis metric: Rate - indicator_path: - 927828: y + indicators: + y: 927828 - dimensions: age: 5-14 years cause: Alcohol use disorders metric: Rate - indicator_path: - 927394: y + indicators: + y: 927394 - dimensions: age: 5-14 years cause: Self-harm metric: Rate - indicator_path: - 927787: y + indicators: + y: 927787 - dimensions: age: 5-14 years cause: Exposure to forces of nature metric: Rate - indicator_path: - 927513: y + indicators: + y: 927513 - dimensions: age: 5-14 years cause: Environmental heat and cold exposure metric: Rate - indicator_path: - 927510: y + indicators: + y: 927510 - dimensions: age: 5-14 years cause: Conflict and terrorism metric: Rate - indicator_path: - 927453: y + indicators: + y: 927453 - dimensions: age: 5-14 years cause: Chronic kidney disease metric: Rate - indicator_path: - 927434: y + indicators: + y: 927434 - dimensions: age: 5-14 years cause: Poisonings metric: Rate - indicator_path: - 927761: y + indicators: + y: 927761 - dimensions: age: 5-14 years cause: Road injuries metric: Rate - indicator_path: - 927783: y + indicators: + y: 927783 - dimensions: age: 5-14 years cause: Fire, heat, and hot substances metric: Rate - indicator_path: - 927523: y + indicators: + y: 927523 - dimensions: age: 5-14 years cause: Acute hepatitis metric: Rate - indicator_path: - 927376: y + indicators: + y: 927376 - dimensions: age: 5-14 years cause: COVID-19 metric: Rate - indicator_path: - 927417: y + indicators: + y: 927417 - dimensions: age: 5-14 years cause: all metric: Rate - indicator_path: - 927376: y - 927394: y - 927417: y - 927421: y - 927434: y - 927442: y - 927453: y - 927473: y - 927477: y - 927481: y - 927487: y - 927489: y - 927510: y - 927513: y - 927523: y - 927542: y - 927571: y - 927600: y - 927602: y - 927614: y - 927625: y - 927650: y - 927664: y - 927761: y - 927783: y - 927787: y - 927828: y + indicators: + y: + - 927376 + - 927394 + - 927417 + - 927421 + - 927434 + - 927442 + - 927453 + - 927473 + - 927477 + - 927481 + - 927487 + - 927489 + - 927510 + - 927513 + - 927523 + - 927542 + - 927571 + - 927600 + - 927602 + - 927614 + - 927625 + - 927650 + - 927664 + - 927761 + - 927783 + - 927787 + - 927828 - dimensions: age: 50-69 years cause: Cardiovascular diseases metric: Number - indicator_path: - 919878: y + indicators: + y: 919878 - dimensions: age: 50-69 years cause: Neoplasms metric: Number - indicator_path: - 920418: y + indicators: + y: 920418 - dimensions: age: 50-69 years cause: Chronic respiratory diseases metric: Number - indicator_path: - 919944: y + indicators: + y: 919944 - dimensions: age: 50-69 years cause: Digestive diseases metric: Number - indicator_path: - 920040: y + indicators: + y: 920040 - dimensions: age: 50-69 years cause: Lower respiratory infections metric: Number - indicator_path: - 920313: y + indicators: + y: 920313 - dimensions: age: 50-69 years cause: Alzheimer's disease and other dementias metric: Number - indicator_path: - 919811: y + indicators: + y: 919811 - dimensions: age: 50-69 years cause: Diabetes mellitus metric: Number - indicator_path: - 920019: y + indicators: + y: 920019 - dimensions: age: 50-69 years cause: Diarrheal diseases metric: Number - indicator_path: - 920029: y + indicators: + y: 920029 - dimensions: age: 50-69 years cause: Meningitis metric: Number - indicator_path: - 920367: y + indicators: + y: 920367 - dimensions: age: 50-69 years cause: Parkinson's disease metric: Number - indicator_path: - 920651: y + indicators: + y: 920651 - dimensions: age: 50-69 years cause: Nutritional deficiencies metric: Number - indicator_path: - 920471: y + indicators: + y: 920471 - dimensions: age: 50-69 years cause: Malaria metric: Number - indicator_path: - 920317: y + indicators: + y: 920317 - dimensions: age: 50-69 years cause: Drowning metric: Number - indicator_path: - 920052: y + indicators: + y: 920052 - dimensions: age: 50-69 years cause: Interpersonal violence metric: Number - indicator_path: - 920230: y + indicators: + y: 920230 - dimensions: age: 50-69 years cause: Maternal disorders metric: Number - indicator_path: - 920341: y + indicators: + y: 920341 - dimensions: age: 50-69 years cause: HIV/AIDS metric: Number - indicator_path: - 920168: y + indicators: + y: 920168 - dimensions: age: 50-69 years cause: Drug use disorders metric: Number - indicator_path: - 920057: y + indicators: + y: 920057 - dimensions: age: 50-69 years cause: Tuberculosis metric: Number - indicator_path: - 920850: y + indicators: + y: 920850 - dimensions: age: 50-69 years cause: Alcohol use disorders metric: Number - indicator_path: - 919799: y + indicators: + y: 919799 - dimensions: age: 50-69 years cause: Self-harm metric: Number - indicator_path: - 920748: y + indicators: + y: 920748 - dimensions: age: 50-69 years cause: Exposure to forces of nature metric: Number - indicator_path: - 920103: y + indicators: + y: 920103 - dimensions: age: 50-69 years cause: Environmental heat and cold exposure metric: Number - indicator_path: - 920096: y + indicators: + y: 920096 - dimensions: age: 50-69 years cause: Conflict and terrorism metric: Number - indicator_path: - 919979: y + indicators: + y: 919979 - dimensions: age: 50-69 years cause: Chronic kidney disease metric: Number - indicator_path: - 919909: y + indicators: + y: 919909 - dimensions: age: 50-69 years cause: Poisonings metric: Number - indicator_path: - 920694: y + indicators: + y: 920694 - dimensions: age: 50-69 years cause: Road injuries metric: Number - indicator_path: - 920741: y + indicators: + y: 920741 - dimensions: age: 50-69 years cause: Fire, heat, and hot substances metric: Number - indicator_path: - 920123: y + indicators: + y: 920123 - dimensions: age: 50-69 years cause: Acute hepatitis metric: Number - indicator_path: - 919760: y + indicators: + y: 919760 - dimensions: age: 50-69 years cause: COVID-19 metric: Number - indicator_path: - 919872: y + indicators: + y: 919872 - dimensions: age: 50-69 years cause: all metric: Number - indicator_path: - 919760: y - 919799: y - 919811: y - 919872: y - 919878: y - 919909: y - 919944: y - 919979: y - 920019: y - 920029: y - 920040: y - 920052: y - 920057: y - 920096: y - 920103: y - 920123: y - 920168: y - 920230: y - 920313: y - 920317: y - 920341: y - 920367: y - 920418: y - 920471: y - 920651: y - 920694: y - 920741: y - 920748: y - 920850: y + indicators: + y: + - 919760 + - 919799 + - 919811 + - 919872 + - 919878 + - 919909 + - 919944 + - 919979 + - 920019 + - 920029 + - 920040 + - 920052 + - 920057 + - 920096 + - 920103 + - 920123 + - 920168 + - 920230 + - 920313 + - 920317 + - 920341 + - 920367 + - 920418 + - 920471 + - 920651 + - 920694 + - 920741 + - 920748 + - 920850 - dimensions: age: 50-69 years cause: Cardiovascular diseases metric: Percent - indicator_path: - 924687: y + indicators: + y: 924687 - dimensions: age: 50-69 years cause: Neoplasms metric: Percent - indicator_path: - 924952: y + indicators: + y: 924952 - dimensions: age: 50-69 years cause: Chronic respiratory diseases metric: Percent - indicator_path: - 924720: y + indicators: + y: 924720 - dimensions: age: 50-69 years cause: Digestive diseases metric: Percent - indicator_path: - 924769: y + indicators: + y: 924769 - dimensions: age: 50-69 years cause: Lower respiratory infections metric: Percent - indicator_path: - 924899: y + indicators: + y: 924899 - dimensions: age: 50-69 years cause: Alzheimer's disease and other dementias metric: Percent - indicator_path: - 924654: y + indicators: + y: 924654 - dimensions: age: 50-69 years cause: Diabetes mellitus metric: Percent - indicator_path: - 924758: y + indicators: + y: 924758 - dimensions: age: 50-69 years cause: Diarrheal diseases metric: Percent - indicator_path: - 924765: y + indicators: + y: 924765 - dimensions: age: 50-69 years cause: Meningitis metric: Percent - indicator_path: - 924926: y + indicators: + y: 924926 - dimensions: age: 50-69 years cause: Parkinson's disease metric: Percent - indicator_path: - 925066: y + indicators: + y: 925066 - dimensions: age: 50-69 years cause: Nutritional deficiencies metric: Percent - indicator_path: - 924979: y + indicators: + y: 924979 - dimensions: age: 50-69 years cause: Malaria metric: Percent - indicator_path: - 924901: y + indicators: + y: 924901 - dimensions: age: 50-69 years cause: Drowning metric: Percent - indicator_path: - 924774: y + indicators: + y: 924774 - dimensions: age: 50-69 years cause: Interpersonal violence metric: Percent - indicator_path: - 924859: y + indicators: + y: 924859 - dimensions: age: 50-69 years cause: Maternal disorders metric: Percent - indicator_path: - 924914: y + indicators: + y: 924914 - dimensions: age: 50-69 years cause: HIV/AIDS metric: Percent - indicator_path: - 924829: y + indicators: + y: 924829 - dimensions: age: 50-69 years cause: Drug use disorders metric: Percent - indicator_path: - 924777: y + indicators: + y: 924777 - dimensions: age: 50-69 years cause: Tuberculosis metric: Percent - indicator_path: - 925165: y + indicators: + y: 925165 - dimensions: age: 50-69 years cause: Alcohol use disorders metric: Percent - indicator_path: - 924647: y + indicators: + y: 924647 - dimensions: age: 50-69 years cause: Self-harm metric: Percent - indicator_path: - 925115: y + indicators: + y: 925115 - dimensions: age: 50-69 years cause: Exposure to forces of nature metric: Percent - indicator_path: - 924799: y + indicators: + y: 924799 - dimensions: age: 50-69 years cause: Environmental heat and cold exposure metric: Percent - indicator_path: - 924794: y + indicators: + y: 924794 - dimensions: age: 50-69 years cause: Conflict and terrorism metric: Percent - indicator_path: - 924737: y + indicators: + y: 924737 - dimensions: age: 50-69 years cause: Chronic kidney disease metric: Percent - indicator_path: - 924700: y + indicators: + y: 924700 - dimensions: age: 50-69 years cause: Poisonings metric: Percent - indicator_path: - 925089: y + indicators: + y: 925089 - dimensions: age: 50-69 years cause: Road injuries metric: Percent - indicator_path: - 925111: y + indicators: + y: 925111 - dimensions: age: 50-69 years cause: Fire, heat, and hot substances metric: Percent - indicator_path: - 924809: y + indicators: + y: 924809 - dimensions: age: 50-69 years cause: Acute hepatitis metric: Percent - indicator_path: - 924630: y + indicators: + y: 924630 - dimensions: age: 50-69 years cause: COVID-19 metric: Percent - indicator_path: - 924682: y + indicators: + y: 924682 - dimensions: age: 50-69 years cause: all metric: Percent - indicator_path: - 924630: y - 924647: y - 924654: y - 924682: y - 924687: y - 924700: y - 924720: y - 924737: y - 924758: y - 924765: y - 924769: y - 924774: y - 924777: y - 924794: y - 924799: y - 924809: y - 924829: y - 924859: y - 924899: y - 924901: y - 924914: y - 924926: y - 924952: y - 924979: y - 925066: y - 925089: y - 925111: y - 925115: y - 925165: y + indicators: + y: + - 924630 + - 924647 + - 924654 + - 924682 + - 924687 + - 924700 + - 924720 + - 924737 + - 924758 + - 924765 + - 924769 + - 924774 + - 924777 + - 924794 + - 924799 + - 924809 + - 924829 + - 924859 + - 924899 + - 924901 + - 924914 + - 924926 + - 924952 + - 924979 + - 925066 + - 925089 + - 925111 + - 925115 + - 925165 - dimensions: age: 50-69 years cause: Cardiovascular diseases metric: Rate - indicator_path: - 927925: y + indicators: + y: 927925 - dimensions: age: 50-69 years cause: Neoplasms metric: Rate - indicator_path: - 928192: y + indicators: + y: 928192 - dimensions: age: 50-69 years cause: Chronic respiratory diseases metric: Rate - indicator_path: - 927959: y + indicators: + y: 927959 - dimensions: age: 50-69 years cause: Digestive diseases metric: Rate - indicator_path: - 928006: y + indicators: + y: 928006 - dimensions: age: 50-69 years cause: Lower respiratory infections metric: Rate - indicator_path: - 928139: y + indicators: + y: 928139 - dimensions: age: 50-69 years cause: Alzheimer's disease and other dementias metric: Rate - indicator_path: - 927893: y + indicators: + y: 927893 - dimensions: age: 50-69 years cause: Diabetes mellitus metric: Rate - indicator_path: - 927996: y + indicators: + y: 927996 - dimensions: age: 50-69 years cause: Diarrheal diseases metric: Rate - indicator_path: - 928001: y + indicators: + y: 928001 - dimensions: age: 50-69 years cause: Meningitis metric: Rate - indicator_path: - 928166: y + indicators: + y: 928166 - dimensions: age: 50-69 years cause: Parkinson's disease metric: Rate - indicator_path: - 928308: y + indicators: + y: 928308 - dimensions: age: 50-69 years cause: Nutritional deficiencies metric: Rate - indicator_path: - 928220: y + indicators: + y: 928220 - dimensions: age: 50-69 years cause: Malaria metric: Rate - indicator_path: - 928141: y + indicators: + y: 928141 - dimensions: age: 50-69 years cause: Drowning metric: Rate - indicator_path: - 928013: y + indicators: + y: 928013 - dimensions: age: 50-69 years cause: Interpersonal violence metric: Rate - indicator_path: - 928096: y + indicators: + y: 928096 - dimensions: age: 50-69 years cause: Maternal disorders metric: Rate - indicator_path: - 928154: y + indicators: + y: 928154 - dimensions: age: 50-69 years cause: HIV/AIDS metric: Rate - indicator_path: - 928066: y + indicators: + y: 928066 - dimensions: age: 50-69 years cause: Drug use disorders metric: Rate - indicator_path: - 928015: y + indicators: + y: 928015 - dimensions: age: 50-69 years cause: Tuberculosis metric: Rate - indicator_path: - 928405: y + indicators: + y: 928405 - dimensions: age: 50-69 years cause: Alcohol use disorders metric: Rate - indicator_path: - 927886: y + indicators: + y: 927886 - dimensions: age: 50-69 years cause: Self-harm metric: Rate - indicator_path: - 928355: y + indicators: + y: 928355 - dimensions: age: 50-69 years cause: Exposure to forces of nature metric: Rate - indicator_path: - 928036: y + indicators: + y: 928036 - dimensions: age: 50-69 years cause: Environmental heat and cold exposure metric: Rate - indicator_path: - 928032: y + indicators: + y: 928032 - dimensions: age: 50-69 years cause: Conflict and terrorism metric: Rate - indicator_path: - 927975: y + indicators: + y: 927975 - dimensions: age: 50-69 years cause: Chronic kidney disease metric: Rate - indicator_path: - 927941: y + indicators: + y: 927941 - dimensions: age: 50-69 years cause: Poisonings metric: Rate - indicator_path: - 928328: y + indicators: + y: 928328 - dimensions: age: 50-69 years cause: Road injuries metric: Rate - indicator_path: - 928351: y + indicators: + y: 928351 - dimensions: age: 50-69 years cause: Fire, heat, and hot substances metric: Rate - indicator_path: - 928045: y + indicators: + y: 928045 - dimensions: age: 50-69 years cause: Acute hepatitis metric: Rate - indicator_path: - 927868: y + indicators: + y: 927868 - dimensions: age: 50-69 years cause: COVID-19 metric: Rate - indicator_path: - 927922: y + indicators: + y: 927922 - dimensions: age: 50-69 years cause: all metric: Rate - indicator_path: - 927868: y - 927886: y - 927893: y - 927922: y - 927925: y - 927941: y - 927959: y - 927975: y - 927996: y - 928001: y - 928006: y - 928013: y - 928015: y - 928032: y - 928036: y - 928045: y - 928066: y - 928096: y - 928139: y - 928141: y - 928154: y - 928166: y - 928192: y - 928220: y - 928308: y - 928328: y - 928351: y - 928355: y - 928405: y + indicators: + y: + - 927868 + - 927886 + - 927893 + - 927922 + - 927925 + - 927941 + - 927959 + - 927975 + - 927996 + - 928001 + - 928006 + - 928013 + - 928015 + - 928032 + - 928036 + - 928045 + - 928066 + - 928096 + - 928139 + - 928141 + - 928154 + - 928166 + - 928192 + - 928220 + - 928308 + - 928328 + - 928351 + - 928355 + - 928405 - dimensions: age: 70+ years cause: Cardiovascular diseases metric: Number - indicator_path: - 921053: y + indicators: + y: 921053 - dimensions: age: 70+ years cause: Neoplasms metric: Number - indicator_path: - 921522: y + indicators: + y: 921522 - dimensions: age: 70+ years cause: Chronic respiratory diseases metric: Number - indicator_path: - 921121: y + indicators: + y: 921121 - dimensions: age: 70+ years cause: Digestive diseases metric: Number - indicator_path: - 921200: y + indicators: + y: 921200 - dimensions: age: 70+ years cause: Lower respiratory infections metric: Number - indicator_path: - 921445: y + indicators: + y: 921445 - dimensions: age: 70+ years cause: Alzheimer's disease and other dementias metric: Number - indicator_path: - 920987: y + indicators: + y: 920987 - dimensions: age: 70+ years cause: Diabetes mellitus metric: Number - indicator_path: - 921184: y + indicators: + y: 921184 - dimensions: age: 70+ years cause: Diarrheal diseases metric: Number - indicator_path: - 921195: y + indicators: + y: 921195 - dimensions: age: 70+ years cause: Meningitis metric: Number - indicator_path: - 921469: y + indicators: + y: 921469 - dimensions: age: 70+ years cause: Parkinson's disease metric: Number - indicator_path: - 921744: y + indicators: + y: 921744 - dimensions: age: 70+ years cause: Nutritional deficiencies metric: Number - indicator_path: - 921570: y + indicators: + y: 921570 - dimensions: age: 70+ years cause: Malaria metric: Number - indicator_path: - 921454: y + indicators: + y: 921454 - dimensions: age: 70+ years cause: Drowning metric: Number - indicator_path: - 921206: y + indicators: + y: 921206 - dimensions: age: 70+ years cause: Interpersonal violence metric: Number - indicator_path: - 921373: y + indicators: + y: 921373 - dimensions: age: 70+ years cause: HIV/AIDS metric: Number - indicator_path: - 921316: y + indicators: + y: 921316 - dimensions: age: 70+ years cause: Drug use disorders metric: Number - indicator_path: - 921213: y + indicators: + y: 921213 - dimensions: age: 70+ years cause: Tuberculosis metric: Number - indicator_path: - 921942: y + indicators: + y: 921942 - dimensions: age: 70+ years cause: Alcohol use disorders metric: Number - indicator_path: - 920975: y + indicators: + y: 920975 - dimensions: age: 70+ years cause: Self-harm metric: Number - indicator_path: - 921835: y + indicators: + y: 921835 - dimensions: age: 70+ years cause: Exposure to forces of nature metric: Number - indicator_path: - 921253: y + indicators: + y: 921253 - dimensions: age: 70+ years cause: Environmental heat and cold exposure metric: Number - indicator_path: - 921246: y + indicators: + y: 921246 - dimensions: age: 70+ years cause: Conflict and terrorism metric: Number - indicator_path: - 921155: y + indicators: + y: 921155 - dimensions: age: 70+ years cause: Chronic kidney disease metric: Number - indicator_path: - 921086: y + indicators: + y: 921086 - dimensions: age: 70+ years cause: Poisonings metric: Number - indicator_path: - 921779: y + indicators: + y: 921779 - dimensions: age: 70+ years cause: Road injuries metric: Number - indicator_path: - 921828: y + indicators: + y: 921828 - dimensions: age: 70+ years cause: Fire, heat, and hot substances metric: Number - indicator_path: - 921276: y + indicators: + y: 921276 - dimensions: age: 70+ years cause: Acute hepatitis metric: Number - indicator_path: - 920936: y + indicators: + y: 920936 - dimensions: age: 70+ years cause: COVID-19 metric: Number - indicator_path: - 921048: y + indicators: + y: 921048 - dimensions: age: 70+ years cause: all metric: Number - indicator_path: - 920936: y - 920975: y - 920987: y - 921048: y - 921053: y - 921086: y - 921121: y - 921155: y - 921184: y - 921195: y - 921200: y - 921206: y - 921213: y - 921246: y - 921253: y - 921276: y - 921316: y - 921373: y - 921445: y - 921454: y - 921469: y - 921522: y - 921570: y - 921744: y - 921779: y - 921828: y - 921835: y - 921942: y + indicators: + y: + - 920936 + - 920975 + - 920987 + - 921048 + - 921053 + - 921086 + - 921121 + - 921155 + - 921184 + - 921195 + - 921200 + - 921206 + - 921213 + - 921246 + - 921253 + - 921276 + - 921316 + - 921373 + - 921445 + - 921454 + - 921469 + - 921522 + - 921570 + - 921744 + - 921779 + - 921828 + - 921835 + - 921942 - dimensions: age: 70+ years cause: Cardiovascular diseases metric: Percent - indicator_path: - 925266: y + indicators: + y: 925266 - dimensions: age: 70+ years cause: Neoplasms metric: Percent - indicator_path: - 925498: y + indicators: + y: 925498 - dimensions: age: 70+ years cause: Chronic respiratory diseases metric: Percent - indicator_path: - 925299: y + indicators: + y: 925299 - dimensions: age: 70+ years cause: Digestive diseases metric: Percent - indicator_path: - 925340: y + indicators: + y: 925340 - dimensions: age: 70+ years cause: Lower respiratory infections metric: Percent - indicator_path: - 925461: y + indicators: + y: 925461 - dimensions: age: 70+ years cause: Alzheimer's disease and other dementias metric: Percent - indicator_path: - 925232: y + indicators: + y: 925232 - dimensions: age: 70+ years cause: Diabetes mellitus metric: Percent - indicator_path: - 925330: y + indicators: + y: 925330 - dimensions: age: 70+ years cause: Diarrheal diseases metric: Percent - indicator_path: - 925336: y + indicators: + y: 925336 - dimensions: age: 70+ years cause: Meningitis metric: Percent - indicator_path: - 925470: y + indicators: + y: 925470 - dimensions: age: 70+ years cause: Parkinson's disease metric: Percent - indicator_path: - 925605: y + indicators: + y: 925605 - dimensions: age: 70+ years cause: Nutritional deficiencies metric: Percent - indicator_path: - 925523: y + indicators: + y: 925523 - dimensions: age: 70+ years cause: Malaria metric: Percent - indicator_path: - 925463: y + indicators: + y: 925463 - dimensions: age: 70+ years cause: Drowning metric: Percent - indicator_path: - 925343: y + indicators: + y: 925343 - dimensions: age: 70+ years cause: Interpersonal violence metric: Percent - indicator_path: - 925420: y + indicators: + y: 925420 - dimensions: age: 70+ years cause: HIV/AIDS metric: Percent - indicator_path: - 925394: y + indicators: + y: 925394 - dimensions: age: 70+ years cause: Drug use disorders metric: Percent - indicator_path: - 925344: y + indicators: + y: 925344 - dimensions: age: 70+ years cause: Tuberculosis metric: Percent - indicator_path: - 925704: y + indicators: + y: 925704 - dimensions: age: 70+ years cause: Alcohol use disorders metric: Percent - indicator_path: - 925225: y + indicators: + y: 925225 - dimensions: age: 70+ years cause: Self-harm metric: Percent - indicator_path: - 925652: y + indicators: + y: 925652 - dimensions: age: 70+ years cause: Exposure to forces of nature metric: Percent - indicator_path: - 925363: y + indicators: + y: 925363 - dimensions: age: 70+ years cause: Environmental heat and cold exposure metric: Percent - indicator_path: - 925359: y + indicators: + y: 925359 - dimensions: age: 70+ years cause: Conflict and terrorism metric: Percent - indicator_path: - 925316: y + indicators: + y: 925316 - dimensions: age: 70+ years cause: Chronic kidney disease metric: Percent - indicator_path: - 925281: y + indicators: + y: 925281 - dimensions: age: 70+ years cause: Poisonings metric: Percent - indicator_path: - 925624: y + indicators: + y: 925624 - dimensions: age: 70+ years cause: Road injuries metric: Percent - indicator_path: - 925648: y + indicators: + y: 925648 - dimensions: age: 70+ years cause: Fire, heat, and hot substances metric: Percent - indicator_path: - 925374: y + indicators: + y: 925374 - dimensions: age: 70+ years cause: Acute hepatitis metric: Percent - indicator_path: - 925206: y + indicators: + y: 925206 - dimensions: age: 70+ years cause: COVID-19 metric: Percent - indicator_path: - 925260: y + indicators: + y: 925260 - dimensions: age: 70+ years cause: all metric: Percent - indicator_path: - 925206: y - 925225: y - 925232: y - 925260: y - 925266: y - 925281: y - 925299: y - 925316: y - 925330: y - 925336: y - 925340: y - 925343: y - 925344: y - 925359: y - 925363: y - 925374: y - 925394: y - 925420: y - 925461: y - 925463: y - 925470: y - 925498: y - 925523: y - 925605: y - 925624: y - 925648: y - 925652: y - 925704: y + indicators: + y: + - 925206 + - 925225 + - 925232 + - 925260 + - 925266 + - 925281 + - 925299 + - 925316 + - 925330 + - 925336 + - 925340 + - 925343 + - 925344 + - 925359 + - 925363 + - 925374 + - 925394 + - 925420 + - 925461 + - 925463 + - 925470 + - 925498 + - 925523 + - 925605 + - 925624 + - 925648 + - 925652 + - 925704 - dimensions: age: 70+ years cause: Cardiovascular diseases metric: Rate - indicator_path: - 928507: y + indicators: + y: 928507 - dimensions: age: 70+ years cause: Neoplasms metric: Rate - indicator_path: - 928737: y + indicators: + y: 928737 - dimensions: age: 70+ years cause: Chronic respiratory diseases metric: Rate - indicator_path: - 928539: y + indicators: + y: 928539 - dimensions: age: 70+ years cause: Digestive diseases metric: Rate - indicator_path: - 928581: y + indicators: + y: 928581 - dimensions: age: 70+ years cause: Lower respiratory infections metric: Rate - indicator_path: - 928700: y + indicators: + y: 928700 - dimensions: age: 70+ years cause: Alzheimer's disease and other dementias metric: Rate - indicator_path: - 928473: y + indicators: + y: 928473 - dimensions: age: 70+ years cause: Diabetes mellitus metric: Rate - indicator_path: - 928573: y + indicators: + y: 928573 - dimensions: age: 70+ years cause: Diarrheal diseases metric: Rate - indicator_path: - 928580: y + indicators: + y: 928580 - dimensions: age: 70+ years cause: Meningitis metric: Rate - indicator_path: - 928710: y + indicators: + y: 928710 - dimensions: age: 70+ years cause: Parkinson's disease metric: Rate - indicator_path: - 928844: y + indicators: + y: 928844 - dimensions: age: 70+ years cause: Nutritional deficiencies metric: Rate - indicator_path: - 928762: y + indicators: + y: 928762 - dimensions: age: 70+ years cause: Malaria metric: Rate - indicator_path: - 928703: y + indicators: + y: 928703 - dimensions: age: 70+ years cause: Drowning metric: Rate - indicator_path: - 928585: y + indicators: + y: 928585 - dimensions: age: 70+ years cause: Interpersonal violence metric: Rate - indicator_path: - 928663: y + indicators: + y: 928663 - dimensions: age: 70+ years cause: HIV/AIDS metric: Rate - indicator_path: - 928636: y + indicators: + y: 928636 - dimensions: age: 70+ years cause: Drug use disorders metric: Rate - indicator_path: - 928588: y + indicators: + y: 928588 - dimensions: age: 70+ years cause: Tuberculosis metric: Rate - indicator_path: - 928941: y + indicators: + y: 928941 - dimensions: age: 70+ years cause: Alcohol use disorders metric: Rate - indicator_path: - 928467: y + indicators: + y: 928467 - dimensions: age: 70+ years cause: Self-harm metric: Rate - indicator_path: - 928889: y + indicators: + y: 928889 - dimensions: age: 70+ years cause: Exposure to forces of nature metric: Rate - indicator_path: - 928605: y + indicators: + y: 928605 - dimensions: age: 70+ years cause: Environmental heat and cold exposure metric: Rate - indicator_path: - 928602: y + indicators: + y: 928602 - dimensions: age: 70+ years cause: Conflict and terrorism metric: Rate - indicator_path: - 928558: y + indicators: + y: 928558 - dimensions: age: 70+ years cause: Chronic kidney disease metric: Rate - indicator_path: - 928521: y + indicators: + y: 928521 - dimensions: age: 70+ years cause: Poisonings metric: Rate - indicator_path: - 928862: y + indicators: + y: 928862 - dimensions: age: 70+ years cause: Road injuries metric: Rate - indicator_path: - 928886: y + indicators: + y: 928886 - dimensions: age: 70+ years cause: Fire, heat, and hot substances metric: Rate - indicator_path: - 928616: y + indicators: + y: 928616 - dimensions: age: 70+ years cause: Acute hepatitis metric: Rate - indicator_path: - 928448: y + indicators: + y: 928448 - dimensions: age: 70+ years cause: COVID-19 metric: Rate - indicator_path: - 928503: y + indicators: + y: 928503 - dimensions: age: 70+ years cause: all metric: Rate - indicator_path: - 928448: y - 928467: y - 928473: y - 928503: y - 928507: y - 928521: y - 928539: y - 928558: y - 928573: y - 928580: y - 928581: y - 928585: y - 928588: y - 928602: y - 928605: y - 928616: y - 928636: y - 928663: y - 928700: y - 928703: y - 928710: y - 928737: y - 928762: y - 928844: y - 928862: y - 928886: y - 928889: y - 928941: y + indicators: + y: + - 928448 + - 928467 + - 928473 + - 928503 + - 928507 + - 928521 + - 928539 + - 928558 + - 928573 + - 928580 + - 928581 + - 928585 + - 928588 + - 928602 + - 928605 + - 928616 + - 928636 + - 928663 + - 928700 + - 928703 + - 928710 + - 928737 + - 928762 + - 928844 + - 928862 + - 928886 + - 928889 + - 928941 - dimensions: age: <5 years cause: Cardiovascular diseases metric: Number - indicator_path: - 922101: y + indicators: + y: 922101 - dimensions: age: <5 years cause: Neoplasms metric: Number - indicator_path: - 922390: y + indicators: + y: 922390 - dimensions: age: <5 years cause: Chronic respiratory diseases metric: Number - indicator_path: - 922135: y + indicators: + y: 922135 - dimensions: age: <5 years cause: Digestive diseases metric: Number - indicator_path: - 922190: y + indicators: + y: 922190 - dimensions: age: <5 years cause: Lower respiratory infections metric: Number - indicator_path: - 922335: y + indicators: + y: 922335 - dimensions: age: <5 years cause: Neonatal disorders metric: Number - indicator_path: - 922375: y + indicators: + y: 922375 - dimensions: age: <5 years cause: Diabetes mellitus metric: Number - indicator_path: - 922177: y + indicators: + y: 922177 - dimensions: age: <5 years cause: Diarrheal diseases metric: Number - indicator_path: - 922185: y + indicators: + y: 922185 - dimensions: age: <5 years cause: Meningitis metric: Number - indicator_path: - 922352: y + indicators: + y: 922352 - dimensions: age: <5 years cause: Nutritional deficiencies metric: Number - indicator_path: - 922411: y + indicators: + y: 922411 - dimensions: age: <5 years cause: Malaria metric: Number - indicator_path: - 922336: y + indicators: + y: 922336 - dimensions: age: <5 years cause: Drowning metric: Number - indicator_path: - 922200: y + indicators: + y: 922200 - dimensions: age: <5 years cause: Interpersonal violence metric: Number - indicator_path: - 922306: y + indicators: + y: 922306 - dimensions: age: <5 years cause: HIV/AIDS metric: Number - indicator_path: - 922263: y + indicators: + y: 922263 - dimensions: age: <5 years cause: Drug use disorders metric: Number - indicator_path: - 922202: y + indicators: + y: 922202 - dimensions: age: <5 years cause: Tuberculosis metric: Number - indicator_path: - 922639: y + indicators: + y: 922639 - dimensions: age: <5 years cause: Alcohol use disorders metric: Number - indicator_path: - 922058: y + indicators: + y: 922058 - dimensions: age: <5 years cause: Exposure to forces of nature metric: Number - indicator_path: - 922229: y + indicators: + y: 922229 - dimensions: age: <5 years cause: Environmental heat and cold exposure metric: Number - indicator_path: - 922227: y + indicators: + y: 922227 - dimensions: age: <5 years cause: Conflict and terrorism metric: Number - indicator_path: - 922147: y + indicators: + y: 922147 - dimensions: age: <5 years cause: Chronic kidney disease metric: Number - indicator_path: - 922120: y + indicators: + y: 922120 - dimensions: age: <5 years cause: Poisonings metric: Number - indicator_path: - 922551: y + indicators: + y: 922551 - dimensions: age: <5 years cause: Road injuries metric: Number - indicator_path: - 922582: y + indicators: + y: 922582 - dimensions: age: <5 years cause: Fire, heat, and hot substances metric: Number - indicator_path: - 922244: y + indicators: + y: 922244 - dimensions: age: <5 years cause: Acute hepatitis metric: Number - indicator_path: - 922018: y + indicators: + y: 922018 - dimensions: age: <5 years cause: COVID-19 metric: Number - indicator_path: - 922096: y + indicators: + y: 922096 - dimensions: age: <5 years cause: all metric: Number - indicator_path: - 922018: y - 922058: y - 922096: y - 922101: y - 922120: y - 922135: y - 922147: y - 922177: y - 922185: y - 922190: y - 922200: y - 922202: y - 922227: y - 922229: y - 922244: y - 922263: y - 922306: y - 922335: y - 922336: y - 922352: y - 922375: y - 922390: y - 922411: y - 922551: y - 922582: y - 922639: y + indicators: + y: + - 922018 + - 922058 + - 922096 + - 922101 + - 922120 + - 922135 + - 922147 + - 922177 + - 922185 + - 922190 + - 922200 + - 922202 + - 922227 + - 922229 + - 922244 + - 922263 + - 922306 + - 922335 + - 922336 + - 922352 + - 922375 + - 922390 + - 922411 + - 922551 + - 922582 + - 922639 - dimensions: age: <5 years cause: Cardiovascular diseases metric: Percent - indicator_path: - 925785: y + indicators: + y: 925785 - dimensions: age: <5 years cause: Neoplasms metric: Percent - indicator_path: - 925977: y + indicators: + y: 925977 - dimensions: age: <5 years cause: Chronic respiratory diseases metric: Percent - indicator_path: - 925806: y + indicators: + y: 925806 - dimensions: age: <5 years cause: Digestive diseases metric: Percent - indicator_path: - 925844: y + indicators: + y: 925844 - dimensions: age: <5 years cause: Lower respiratory infections metric: Percent - indicator_path: - 925941: y + indicators: + y: 925941 - dimensions: age: <5 years cause: Neonatal disorders metric: Percent - indicator_path: - 925970: y + indicators: + y: 925970 - dimensions: age: <5 years cause: Diabetes mellitus metric: Percent - indicator_path: - 925836: y + indicators: + y: 925836 - dimensions: age: <5 years cause: Diarrheal diseases metric: Percent - indicator_path: - 925842: y + indicators: + y: 925842 - dimensions: age: <5 years cause: Meningitis metric: Percent - indicator_path: - 925951: y + indicators: + y: 925951 - dimensions: age: <5 years cause: Nutritional deficiencies metric: Percent - indicator_path: - 925992: y + indicators: + y: 925992 - dimensions: age: <5 years cause: Malaria metric: Percent - indicator_path: - 925944: y + indicators: + y: 925944 - dimensions: age: <5 years cause: Drowning metric: Percent - indicator_path: - 925851: y + indicators: + y: 925851 - dimensions: age: <5 years cause: Interpersonal violence metric: Percent - indicator_path: - 925920: y + indicators: + y: 925920 - dimensions: age: <5 years cause: HIV/AIDS metric: Percent - indicator_path: - 925893: y + indicators: + y: 925893 - dimensions: age: <5 years cause: Drug use disorders metric: Percent - indicator_path: - 925853: y + indicators: + y: 925853 - dimensions: age: <5 years cause: Tuberculosis metric: Percent - indicator_path: - 926143: y + indicators: + y: 926143 - dimensions: age: <5 years cause: Alcohol use disorders metric: Percent - indicator_path: - 925761: y + indicators: + y: 925761 - dimensions: age: <5 years cause: Exposure to forces of nature metric: Percent - indicator_path: - 925869: y + indicators: + y: 925869 - dimensions: age: <5 years cause: Environmental heat and cold exposure metric: Percent - indicator_path: - 925866: y + indicators: + y: 925866 - dimensions: age: <5 years cause: Conflict and terrorism metric: Percent - indicator_path: - 925814: y + indicators: + y: 925814 - dimensions: age: <5 years cause: Chronic kidney disease metric: Percent - indicator_path: - 925795: y + indicators: + y: 925795 - dimensions: age: <5 years cause: Poisonings metric: Percent - indicator_path: - 926082: y + indicators: + y: 926082 - dimensions: age: <5 years cause: Road injuries metric: Percent - indicator_path: - 926103: y + indicators: + y: 926103 - dimensions: age: <5 years cause: Fire, heat, and hot substances metric: Percent - indicator_path: - 925879: y + indicators: + y: 925879 - dimensions: age: <5 years cause: Acute hepatitis metric: Percent - indicator_path: - 925743: y + indicators: + y: 925743 - dimensions: age: <5 years cause: COVID-19 metric: Percent - indicator_path: - 925781: y + indicators: + y: 925781 - dimensions: age: <5 years cause: all metric: Percent - indicator_path: - 925743: y - 925761: y - 925781: y - 925785: y - 925795: y - 925806: y - 925814: y - 925836: y - 925842: y - 925844: y - 925851: y - 925853: y - 925866: y - 925869: y - 925879: y - 925893: y - 925920: y - 925941: y - 925944: y - 925951: y - 925970: y - 925977: y - 925992: y - 926082: y - 926103: y - 926143: y + indicators: + y: + - 925743 + - 925761 + - 925781 + - 925785 + - 925795 + - 925806 + - 925814 + - 925836 + - 925842 + - 925844 + - 925851 + - 925853 + - 925866 + - 925869 + - 925879 + - 925893 + - 925920 + - 925941 + - 925944 + - 925951 + - 925970 + - 925977 + - 925992 + - 926082 + - 926103 + - 926143 - dimensions: age: <5 years cause: Cardiovascular diseases metric: Rate - indicator_path: - 929021: y + indicators: + y: 929021 - dimensions: age: <5 years cause: Neoplasms metric: Rate - indicator_path: - 929214: y + indicators: + y: 929214 - dimensions: age: <5 years cause: Chronic respiratory diseases metric: Rate - indicator_path: - 929043: y + indicators: + y: 929043 - dimensions: age: <5 years cause: Digestive diseases metric: Rate - indicator_path: - 929080: y + indicators: + y: 929080 - dimensions: age: <5 years cause: Lower respiratory infections metric: Rate - indicator_path: - 929177: y + indicators: + y: 929177 - dimensions: age: <5 years cause: Neonatal disorders metric: Rate - indicator_path: - 929206: y + indicators: + y: 929206 - dimensions: age: <5 years cause: Diabetes mellitus metric: Rate - indicator_path: - 929070: y + indicators: + y: 929070 - dimensions: age: <5 years cause: Diarrheal diseases metric: Rate - indicator_path: - 929075: y + indicators: + y: 929075 - dimensions: age: <5 years cause: Meningitis metric: Rate - indicator_path: - 929188: y + indicators: + y: 929188 - dimensions: age: <5 years cause: Nutritional deficiencies metric: Rate - indicator_path: - 929229: y + indicators: + y: 929229 - dimensions: age: <5 years cause: Malaria metric: Rate - indicator_path: - 929180: y + indicators: + y: 929180 - dimensions: age: <5 years cause: Drowning metric: Rate - indicator_path: - 929086: y + indicators: + y: 929086 - dimensions: age: <5 years cause: Interpersonal violence metric: Rate - indicator_path: - 929155: y + indicators: + y: 929155 - dimensions: age: <5 years cause: HIV/AIDS metric: Rate - indicator_path: - 929126: y + indicators: + y: 929126 - dimensions: age: <5 years cause: Drug use disorders metric: Rate - indicator_path: - 929089: y + indicators: + y: 929089 - dimensions: age: <5 years cause: Tuberculosis metric: Rate - indicator_path: - 929378: y + indicators: + y: 929378 - dimensions: age: <5 years cause: Alcohol use disorders metric: Rate - indicator_path: - 929000: y + indicators: + y: 929000 - dimensions: age: <5 years cause: Exposure to forces of nature metric: Rate - indicator_path: - 929103: y + indicators: + y: 929103 - dimensions: age: <5 years cause: Environmental heat and cold exposure metric: Rate - indicator_path: - 929101: y + indicators: + y: 929101 - dimensions: age: <5 years cause: Conflict and terrorism metric: Rate - indicator_path: - 929051: y + indicators: + y: 929051 - dimensions: age: <5 years cause: Chronic kidney disease metric: Rate - indicator_path: - 929030: y + indicators: + y: 929030 - dimensions: age: <5 years cause: Poisonings metric: Rate - indicator_path: - 929318: y + indicators: + y: 929318 - dimensions: age: <5 years cause: Road injuries metric: Rate - indicator_path: - 929339: y + indicators: + y: 929339 - dimensions: age: <5 years cause: Fire, heat, and hot substances metric: Rate - indicator_path: - 929114: y + indicators: + y: 929114 - dimensions: age: <5 years cause: Acute hepatitis metric: Rate - indicator_path: - 928982: y + indicators: + y: 928982 - dimensions: age: <5 years cause: COVID-19 metric: Rate - indicator_path: - 929017: y + indicators: + y: 929017 - dimensions: age: <5 years cause: all metric: Rate - indicator_path: - 928982: y - 929000: y - 929017: y - 929021: y - 929030: y - 929043: y - 929051: y - 929070: y - 929075: y - 929080: y - 929086: y - 929089: y - 929101: y - 929103: y - 929114: y - 929126: y - 929155: y - 929177: y - 929180: y - 929188: y - 929206: y - 929214: y - 929229: y - 929318: y - 929339: y - 929378: y + indicators: + y: + - 928982 + - 929000 + - 929017 + - 929021 + - 929030 + - 929043 + - 929051 + - 929070 + - 929075 + - 929080 + - 929086 + - 929089 + - 929101 + - 929103 + - 929114 + - 929126 + - 929155 + - 929177 + - 929180 + - 929188 + - 929206 + - 929214 + - 929229 + - 929318 + - 929339 + - 929378 - dimensions: age: All ages cause: Cardiovascular diseases metric: Number - indicator_path: - 922787: y + indicators: + y: 922787 - dimensions: age: All ages cause: Neoplasms metric: Number - indicator_path: - 923200: y + indicators: + y: 923200 - dimensions: age: All ages cause: Chronic respiratory diseases metric: Number - indicator_path: - 922835: y + indicators: + y: 922835 - dimensions: age: All ages cause: Digestive diseases metric: Number - indicator_path: - 922902: y + indicators: + y: 922902 - dimensions: age: All ages cause: Lower respiratory infections metric: Number - indicator_path: - 923105: y + indicators: + y: 923105 - dimensions: age: All ages cause: Neonatal disorders metric: Number - indicator_path: - 923189: y + indicators: + y: 923189 - dimensions: age: All ages cause: Alzheimer's disease and other dementias metric: Number - indicator_path: - 922732: y + indicators: + y: 922732 - dimensions: age: All ages cause: Diabetes mellitus metric: Number - indicator_path: - 922886: y + indicators: + y: 922886 - dimensions: age: All ages cause: Diarrheal diseases metric: Number - indicator_path: - 922894: y + indicators: + y: 922894 - dimensions: age: All ages cause: Meningitis metric: Number - indicator_path: - 923145: y + indicators: + y: 923145 - dimensions: age: All ages cause: Parkinson's disease metric: Number - indicator_path: - 923379: y + indicators: + y: 923379 - dimensions: age: All ages cause: Nutritional deficiencies metric: Number - indicator_path: - 923241: y + indicators: + y: 923241 - dimensions: age: All ages cause: Malaria metric: Number - indicator_path: - 923108: y + indicators: + y: 923108 - dimensions: age: All ages cause: Drowning metric: Number - indicator_path: - 922910: y + indicators: + y: 922910 - dimensions: age: All ages cause: Interpersonal violence metric: Number - indicator_path: - 923046: y + indicators: + y: 923046 - dimensions: age: All ages cause: Maternal disorders metric: Number - indicator_path: - 923125: y + indicators: + y: 923125 - dimensions: age: All ages cause: HIV/AIDS metric: Number - indicator_path: - 922998: y + indicators: + y: 922998 - dimensions: age: All ages cause: Drug use disorders metric: Number - indicator_path: - 922913: y + indicators: + y: 922913 - dimensions: age: All ages cause: Tuberculosis metric: Number - indicator_path: - 923509: y + indicators: + y: 923509 - dimensions: age: All ages cause: Alcohol use disorders metric: Number - indicator_path: - 922723: y + indicators: + y: 922723 - dimensions: age: All ages cause: Self-harm metric: Number - indicator_path: - 923453: y + indicators: + y: 923453 - dimensions: age: All ages cause: Exposure to forces of nature metric: Number - indicator_path: - 922951: y + indicators: + y: 922951 - dimensions: age: All ages cause: Environmental heat and cold exposure metric: Number - indicator_path: - 922943: y + indicators: + y: 922943 - dimensions: age: All ages cause: Conflict and terrorism metric: Number - indicator_path: - 922858: y + indicators: + y: 922858 - dimensions: age: All ages cause: Chronic kidney disease metric: Number - indicator_path: - 922808: y + indicators: + y: 922808 - dimensions: age: All ages cause: Poisonings metric: Number - indicator_path: - 923410: y + indicators: + y: 923410 - dimensions: age: All ages cause: Road injuries metric: Number - indicator_path: - 923449: y + indicators: + y: 923449 - dimensions: age: All ages cause: Fire, heat, and hot substances metric: Number - indicator_path: - 922968: y + indicators: + y: 922968 - dimensions: age: All ages cause: Acute hepatitis metric: Number - indicator_path: - 922696: y + indicators: + y: 922696 - dimensions: age: All ages cause: COVID-19 metric: Number - indicator_path: - 922779: y + indicators: + y: 922779 - dimensions: age: All ages cause: all metric: Number - indicator_path: - 922696: y - 922723: y - 922732: y - 922779: y - 922787: y - 922808: y - 922835: y - 922858: y - 922886: y - 922894: y - 922902: y - 922910: y - 922913: y - 922943: y - 922951: y - 922968: y - 922998: y - 923046: y - 923105: y - 923108: y - 923125: y - 923145: y - 923189: y - 923200: y - 923241: y - 923379: y - 923410: y - 923449: y - 923453: y - 923509: y + indicators: + y: + - 922696 + - 922723 + - 922732 + - 922779 + - 922787 + - 922808 + - 922835 + - 922858 + - 922886 + - 922894 + - 922902 + - 922910 + - 922913 + - 922943 + - 922951 + - 922968 + - 922998 + - 923046 + - 923105 + - 923108 + - 923125 + - 923145 + - 923189 + - 923200 + - 923241 + - 923379 + - 923410 + - 923449 + - 923453 + - 923509 - dimensions: age: All ages cause: Cardiovascular diseases metric: Percent - indicator_path: - 926241: y + indicators: + y: 926241 - dimensions: age: All ages cause: Neoplasms metric: Percent - indicator_path: - 926523: y + indicators: + y: 926523 - dimensions: age: All ages cause: Chronic respiratory diseases metric: Percent - indicator_path: - 926274: y + indicators: + y: 926274 - dimensions: age: All ages cause: Digestive diseases metric: Percent - indicator_path: - 926320: y + indicators: + y: 926320 - dimensions: age: All ages cause: Lower respiratory infections metric: Percent - indicator_path: - 926459: y + indicators: + y: 926459 - dimensions: age: All ages cause: Neonatal disorders metric: Percent - indicator_path: - 926515: y + indicators: + y: 926515 - dimensions: age: All ages cause: Alzheimer's disease and other dementias metric: Percent - indicator_path: - 926207: y + indicators: + y: 926207 - dimensions: age: All ages cause: Diabetes mellitus metric: Percent - indicator_path: - 926311: y + indicators: + y: 926311 - dimensions: age: All ages cause: Diarrheal diseases metric: Percent - indicator_path: - 926317: y + indicators: + y: 926317 - dimensions: age: All ages cause: Meningitis metric: Percent - indicator_path: - 926486: y + indicators: + y: 926486 - dimensions: age: All ages cause: Parkinson's disease metric: Percent - indicator_path: - 926642: y + indicators: + y: 926642 - dimensions: age: All ages cause: Nutritional deficiencies metric: Percent - indicator_path: - 926550: y + indicators: + y: 926550 - dimensions: age: All ages cause: Malaria metric: Percent - indicator_path: - 926462: y + indicators: + y: 926462 - dimensions: age: All ages cause: Drowning metric: Percent - indicator_path: - 926327: y + indicators: + y: 926327 - dimensions: age: All ages cause: Interpersonal violence metric: Percent - indicator_path: - 926418: y + indicators: + y: 926418 - dimensions: age: All ages cause: Maternal disorders metric: Percent - indicator_path: - 926473: y + indicators: + y: 926473 - dimensions: age: All ages cause: HIV/AIDS metric: Percent - indicator_path: - 926386: y + indicators: + y: 926386 - dimensions: age: All ages cause: Drug use disorders metric: Percent - indicator_path: - 926329: y + indicators: + y: 926329 - dimensions: age: All ages cause: Tuberculosis metric: Percent - indicator_path: - 926745: y + indicators: + y: 926745 - dimensions: age: All ages cause: Alcohol use disorders metric: Percent - indicator_path: - 926200: y + indicators: + y: 926200 - dimensions: age: All ages cause: Self-harm metric: Percent - indicator_path: - 926692: y + indicators: + y: 926692 - dimensions: age: All ages cause: Exposure to forces of nature metric: Percent - indicator_path: - 926353: y + indicators: + y: 926353 - dimensions: age: All ages cause: Environmental heat and cold exposure metric: Percent - indicator_path: - 926350: y + indicators: + y: 926350 - dimensions: age: All ages cause: Conflict and terrorism metric: Percent - indicator_path: - 926290: y + indicators: + y: 926290 - dimensions: age: All ages cause: Chronic kidney disease metric: Percent - indicator_path: - 926255: y + indicators: + y: 926255 - dimensions: age: All ages cause: Poisonings metric: Percent - indicator_path: - 926662: y + indicators: + y: 926662 - dimensions: age: All ages cause: Road injuries metric: Percent - indicator_path: - 926687: y + indicators: + y: 926687 - dimensions: age: All ages cause: Fire, heat, and hot substances metric: Percent - indicator_path: - 926364: y + indicators: + y: 926364 - dimensions: age: All ages cause: Acute hepatitis metric: Percent - indicator_path: - 926180: y + indicators: + y: 926180 - dimensions: age: All ages cause: COVID-19 metric: Percent - indicator_path: - 926236: y + indicators: + y: 926236 - dimensions: age: All ages cause: all metric: Percent - indicator_path: - 926180: y - 926200: y - 926207: y - 926236: y - 926241: y - 926255: y - 926274: y - 926290: y - 926311: y - 926317: y - 926320: y - 926327: y - 926329: y - 926350: y - 926353: y - 926364: y - 926386: y - 926418: y - 926459: y - 926462: y - 926473: y - 926486: y - 926515: y - 926523: y - 926550: y - 926642: y - 926662: y - 926687: y - 926692: y - 926745: y + indicators: + y: + - 926180 + - 926200 + - 926207 + - 926236 + - 926241 + - 926255 + - 926274 + - 926290 + - 926311 + - 926317 + - 926320 + - 926327 + - 926329 + - 926350 + - 926353 + - 926364 + - 926386 + - 926418 + - 926459 + - 926462 + - 926473 + - 926486 + - 926515 + - 926523 + - 926550 + - 926642 + - 926662 + - 926687 + - 926692 + - 926745 - dimensions: age: All ages cause: Cardiovascular diseases metric: Rate - indicator_path: - 930083: y + indicators: + y: 930083 - dimensions: age: All ages cause: Neoplasms metric: Rate - indicator_path: - 930366: y + indicators: + y: 930366 - dimensions: age: All ages cause: Chronic respiratory diseases metric: Rate - indicator_path: - 930116: y + indicators: + y: 930116 - dimensions: age: All ages cause: Digestive diseases metric: Rate - indicator_path: - 930164: y + indicators: + y: 930164 - dimensions: age: All ages cause: Lower respiratory infections metric: Rate - indicator_path: - 930303: y + indicators: + y: 930303 - dimensions: age: All ages cause: Neonatal disorders metric: Rate - indicator_path: - 930358: y + indicators: + y: 930358 - dimensions: age: All ages cause: Alzheimer's disease and other dementias metric: Rate - indicator_path: - 930047: y + indicators: + y: 930047 - dimensions: age: All ages cause: Diabetes mellitus metric: Rate - indicator_path: - 930153: y + indicators: + y: 930153 - dimensions: age: All ages cause: Diarrheal diseases metric: Rate - indicator_path: - 930159: y + indicators: + y: 930159 - dimensions: age: All ages cause: Meningitis metric: Rate - indicator_path: - 930329: y + indicators: + y: 930329 - dimensions: age: All ages cause: Parkinson's disease metric: Rate - indicator_path: - 930486: y + indicators: + y: 930486 - dimensions: age: All ages cause: Nutritional deficiencies metric: Rate - indicator_path: - 930394: y + indicators: + y: 930394 - dimensions: age: All ages cause: Malaria metric: Rate - indicator_path: - 930306: y + indicators: + y: 930306 - dimensions: age: All ages cause: Drowning metric: Rate - indicator_path: - 930170: y + indicators: + y: 930170 - dimensions: age: All ages cause: Interpersonal violence metric: Rate - indicator_path: - 930262: y + indicators: + y: 930262 - dimensions: age: All ages cause: Maternal disorders metric: Rate - indicator_path: - 930316: y + indicators: + y: 930316 - dimensions: age: All ages cause: HIV/AIDS metric: Rate - indicator_path: - 930229: y + indicators: + y: 930229 - dimensions: age: All ages cause: Drug use disorders metric: Rate - indicator_path: - 930172: y + indicators: + y: 930172 - dimensions: age: All ages cause: Tuberculosis metric: Rate - indicator_path: - 930540: y + indicators: + y: 930540 - dimensions: age: All ages cause: Alcohol use disorders metric: Rate - indicator_path: - 930041: y + indicators: + y: 930041 - dimensions: age: All ages cause: Self-harm metric: Rate - indicator_path: - 930514: y + indicators: + y: 930514 - dimensions: age: All ages cause: Exposure to forces of nature metric: Rate - indicator_path: - 930198: y + indicators: + y: 930198 - dimensions: age: All ages cause: Environmental heat and cold exposure metric: Rate - indicator_path: - 930194: y + indicators: + y: 930194 - dimensions: age: All ages cause: Conflict and terrorism metric: Rate - indicator_path: - 930132: y + indicators: + y: 930132 - dimensions: age: All ages cause: Chronic kidney disease metric: Rate - indicator_path: - 930097: y + indicators: + y: 930097 - dimensions: age: All ages cause: Poisonings metric: Rate - indicator_path: - 930500: y + indicators: + y: 930500 - dimensions: age: All ages cause: Road injuries metric: Rate - indicator_path: - 930512: y + indicators: + y: 930512 - dimensions: age: All ages cause: Fire, heat, and hot substances metric: Rate - indicator_path: - 930209: y + indicators: + y: 930209 - dimensions: age: All ages cause: Acute hepatitis metric: Rate - indicator_path: - 930023: y + indicators: + y: 930023 - dimensions: age: All ages cause: COVID-19 metric: Rate - indicator_path: - 930079: y + indicators: + y: 930079 - dimensions: age: All ages cause: all metric: Rate - indicator_path: - 930023: y - 930041: y - 930047: y - 930079: y - 930083: y - 930097: y - 930116: y - 930132: y - 930153: y - 930159: y - 930164: y - 930170: y - 930172: y - 930194: y - 930198: y - 930209: y - 930229: y - 930262: y - 930303: y - 930306: y - 930316: y - 930329: y - 930358: y - 930366: y - 930394: y - 930486: y - 930500: y - 930512: y - 930514: y - 930540: y + indicators: + y: + - 930023 + - 930041 + - 930047 + - 930079 + - 930083 + - 930097 + - 930116 + - 930132 + - 930153 + - 930159 + - 930164 + - 930170 + - 930172 + - 930194 + - 930198 + - 930209 + - 930229 + - 930262 + - 930303 + - 930306 + - 930316 + - 930329 + - 930358 + - 930366 + - 930394 + - 930486 + - 930500 + - 930512 + - 930514 + - 930540 - dimensions: age: Age-standardized cause: all metric: Number - indicator_path: {} + indicators: {} - dimensions: age: Age-standardized cause: all metric: Percent - indicator_path: {} + indicators: {} - dimensions: age: Age-standardized cause: Cardiovascular diseases metric: Rate - indicator_path: - 929478: y + indicators: + y: 929478 - dimensions: age: Age-standardized cause: Neoplasms metric: Rate - indicator_path: - 929758: y + indicators: + y: 929758 - dimensions: age: Age-standardized cause: Chronic respiratory diseases metric: Rate - indicator_path: - 929510: y + indicators: + y: 929510 - dimensions: age: Age-standardized cause: Digestive diseases metric: Rate - indicator_path: - 929557: y + indicators: + y: 929557 - dimensions: age: Age-standardized cause: Lower respiratory infections metric: Rate - indicator_path: - 929695: y + indicators: + y: 929695 - dimensions: age: Age-standardized cause: Neonatal disorders metric: Rate - indicator_path: - 929751: y + indicators: + y: 929751 - dimensions: age: Age-standardized cause: Alzheimer's disease and other dementias metric: Rate - indicator_path: - 929443: y + indicators: + y: 929443 - dimensions: age: Age-standardized cause: Diabetes mellitus metric: Rate - indicator_path: - 929547: y + indicators: + y: 929547 - dimensions: age: Age-standardized cause: Diarrheal diseases metric: Rate - indicator_path: - 929553: y + indicators: + y: 929553 - dimensions: age: Age-standardized cause: Meningitis metric: Rate - indicator_path: - 929721: y + indicators: + y: 929721 - dimensions: age: Age-standardized cause: Parkinson's disease metric: Rate - indicator_path: - 929879: y + indicators: + y: 929879 - dimensions: age: Age-standardized cause: Nutritional deficiencies metric: Rate - indicator_path: - 929786: y + indicators: + y: 929786 - dimensions: age: Age-standardized cause: Malaria metric: Rate - indicator_path: - 929697: y + indicators: + y: 929697 - dimensions: age: Age-standardized cause: Drowning metric: Rate - indicator_path: - 929564: y + indicators: + y: 929564 - dimensions: age: Age-standardized cause: Interpersonal violence metric: Rate - indicator_path: - 929653: y + indicators: + y: 929653 - dimensions: age: Age-standardized cause: Maternal disorders metric: Rate - indicator_path: - 929710: y + indicators: + y: 929710 - dimensions: age: Age-standardized cause: HIV/AIDS metric: Rate - indicator_path: - 929621: y + indicators: + y: 929621 - dimensions: age: Age-standardized cause: Drug use disorders metric: Rate - indicator_path: - 929565: y + indicators: + y: 929565 - dimensions: age: Age-standardized cause: Tuberculosis metric: Rate - indicator_path: - 929981: y + indicators: + y: 929981 - dimensions: age: Age-standardized cause: Alcohol use disorders metric: Rate - indicator_path: - 929434: y + indicators: + y: 929434 - dimensions: age: Age-standardized cause: Self-harm metric: Rate - indicator_path: - 929928: y + indicators: + y: 929928 - dimensions: age: Age-standardized cause: Exposure to forces of nature metric: Rate - indicator_path: - 929591: y + indicators: + y: 929591 - dimensions: age: Age-standardized cause: Environmental heat and cold exposure metric: Rate - indicator_path: - 929587: y + indicators: + y: 929587 - dimensions: age: Age-standardized cause: Conflict and terrorism metric: Rate - indicator_path: - 929527: y + indicators: + y: 929527 - dimensions: age: Age-standardized cause: Chronic kidney disease metric: Rate - indicator_path: - 929492: y + indicators: + y: 929492 - dimensions: age: Age-standardized cause: Poisonings metric: Rate - indicator_path: - 929899: y + indicators: + y: 929899 - dimensions: age: Age-standardized cause: Road injuries metric: Rate - indicator_path: - 929924: y + indicators: + y: 929924 - dimensions: age: Age-standardized cause: Fire, heat, and hot substances metric: Rate - indicator_path: - 929601: y + indicators: + y: 929601 - dimensions: age: Age-standardized cause: Acute hepatitis metric: Rate - indicator_path: - 929415: y + indicators: + y: 929415 - dimensions: age: Age-standardized cause: COVID-19 metric: Rate - indicator_path: - 929474: y + indicators: + y: 929474 - dimensions: age: Age-standardized cause: all metric: Rate - indicator_path: - 929415: y - 929434: y - 929443: y - 929474: y - 929478: y - 929492: y - 929510: y - 929527: y - 929547: y - 929553: y - 929557: y - 929564: y - 929565: y - 929587: y - 929591: y - 929601: y - 929621: y - 929653: y - 929695: y - 929697: y - 929710: y - 929721: y - 929751: y - 929758: y - 929786: y - 929879: y - 929899: y - 929924: y - 929928: y - 929981: y + indicators: + y: + - 929415 + - 929434 + - 929443 + - 929474 + - 929478 + - 929492 + - 929510 + - 929527 + - 929547 + - 929553 + - 929557 + - 929564 + - 929565 + - 929587 + - 929591 + - 929601 + - 929621 + - 929653 + - 929695 + - 929697 + - 929710 + - 929721 + - 929751 + - 929758 + - 929786 + - 929879 + - 929899 + - 929924 + - 929928 + - 929981 diff --git a/public/multi-dim/energy.yml b/public/multi-dim/energy.yml index 665fd877e8a..22a60535113 100644 --- a/public/multi-dim/energy.yml +++ b/public/multi-dim/energy.yml @@ -70,26 +70,26 @@ views: - dimensions: source: all metric: total - indicator_path: - 900831: y + indicators: + y: 900831 - dimensions: source: all metric: per_capita - indicator_path: - 900839: y + indicators: + y: 900839 - dimensions: source: all metric: share_total - dimensions: source: all metric: proportional_change - indicator_path: - 900830: y + indicators: + y: 900830 - dimensions: source: all metric: absolute_change - indicator_path: - 900832: y + indicators: + y: 900832 - dimensions: source: fossil diff --git a/public/multi-dim/life-expectancy.json b/public/multi-dim/life-expectancy.json index c4fdaaa3d5f..988416b8db6 100644 --- a/public/multi-dim/life-expectancy.json +++ b/public/multi-dim/life-expectancy.json @@ -71,7 +71,7 @@ "views": [ { "dimensions": { "age": "0", "sex": "both", "projection": "none" }, - "indicator_path": { "520369": "y" }, + "indicators": { "y": "520369" }, "config": { "title": "Life expectancy at birth", "hasMapTab": true @@ -79,7 +79,7 @@ }, { "dimensions": { "age": "0", "sex": "both", "projection": "medium" }, - "indicator_path": { "520370": "y" }, + "indicators": { "y": "520370" }, "config": { "title": "Life expectancy at birth, medium projection", "hasMapTab": true @@ -88,7 +88,7 @@ { "dimensions": { "age": "0", "sex": "male", "projection": "none" }, - "indicator_path": { "520349": "y" }, + "indicators": { "y": "520349" }, "config": { "title": "Male life expectancy at birth", "hasMapTab": true @@ -96,7 +96,7 @@ }, { "dimensions": { "age": "0", "sex": "male", "projection": "medium" }, - "indicator_path": { "520350": "y" }, + "indicators": { "y": "520350" }, "config": { "title": "Male life expectancy at birth, medium projection", "hasMapTab": true @@ -105,7 +105,7 @@ { "dimensions": { "age": "0", "sex": "female", "projection": "none" }, - "indicator_path": { "520329": "y" }, + "indicators": { "y": "520329" }, "config": { "title": "Female life expectancy at birth", "hasMapTab": true @@ -117,7 +117,7 @@ "sex": "female", "projection": "medium" }, - "indicator_path": { "520330": "y" }, + "indicators": { "y": "520330" }, "config": { "title": "Female life expectancy at birth, medium projection", "hasMapTab": true @@ -126,7 +126,7 @@ { "dimensions": { "age": "15", "sex": "both", "projection": "none" }, - "indicator_path": { "520379": "y" }, + "indicators": { "y": "520379" }, "config": { "title": "Life expectancy at age 15", "hasMapTab": true @@ -138,7 +138,7 @@ "sex": "both", "projection": "medium" }, - "indicator_path": { "520380": "y" }, + "indicators": { "y": "520380" }, "config": { "title": "Life expectancy at age 15, medium projection", "hasMapTab": true @@ -147,7 +147,7 @@ { "dimensions": { "age": "15", "sex": "male", "projection": "none" }, - "indicator_path": { "520359": "y" }, + "indicators": { "y": "520359" }, "config": { "title": "Male life expectancy at age 15", "hasMapTab": true @@ -159,7 +159,7 @@ "sex": "male", "projection": "medium" }, - "indicator_path": { "520360": "y" }, + "indicators": { "y": "520360" }, "config": { "title": "Male life expectancy at age 15, medium projection", "hasMapTab": true @@ -172,7 +172,7 @@ "sex": "female", "projection": "none" }, - "indicator_path": { "520338": "y" }, + "indicators": { "y": "520338" }, "config": { "title": "Female life expectancy at age 15", "hasMapTab": true @@ -184,7 +184,7 @@ "sex": "female", "projection": "medium" }, - "indicator_path": { "520340": "y" }, + "indicators": { "y": "520340" }, "config": { "title": "Female life expectancy at age 15, medium projection", "hasMapTab": true diff --git a/public/multi-dim/plastic.json b/public/multi-dim/plastic.json index c9676ff5147..dbf46f85fff 100644 --- a/public/multi-dim/plastic.json +++ b/public/multi-dim/plastic.json @@ -64,7 +64,7 @@ "views": [ { "dimensions": { "metric": "waste_gen", "measurement": "total" }, - "indicator_path": { "97679": "y" }, + "indicators": { "y": "97679" }, "config": { "title": "Plastic waste generation", "subtitle": "This measures total plastic waste generation prior to management and therefore does not represent the quantity of plastic at risk of polluting waterways, rivers and the ocean environment." @@ -75,7 +75,7 @@ "metric": "waste_gen", "measurement": "per_capita" }, - "indicator_path": { "65358": "y" }, + "indicators": { "y": "65358" }, "config": { "title": "Plastic waste generation per capita", "subtitle": "This measures total plastic waste generation prior to management and therefore does not represent the quantity of plastic at risk of polluting waterways, rivers and the ocean environment." @@ -86,7 +86,7 @@ "metric": "waste_gen", "measurement": "share_of_world" }, - "indicator_path": { "146456": "y" }, + "indicators": { "y": "146456" }, "config": { "title": "Plastic waste generation", "subtitle": "This measures total plastic waste generation prior to management and therefore does not represent the quantity of plastic at risk of polluting waterways, rivers and the ocean environment." diff --git a/public/multi-dim/poverty.yml b/public/multi-dim/poverty.yml index 7136c706431..ccebfd59e43 100644 --- a/public/multi-dim/poverty.yml +++ b/public/multi-dim/poverty.yml @@ -43,56 +43,56 @@ views: metric: share config: hasMapTab: true - indicator_path: - 819727: y + indicators: + y: 819727 - dimensions: povertyLine: "3.65" metric: share - indicator_path: - 819729: y + indicators: + y: 819729 config: hasMapTab: true - dimensions: povertyLine: "6.85" metric: share - indicator_path: - 819731: y + indicators: + y: 819731 config: hasMapTab: true - dimensions: povertyLine: "10" metric: share - indicator_path: - 819725: y + indicators: + y: 819725 config: hasMapTab: true - dimensions: povertyLine: "20" metric: share - indicator_path: - 819726: y + indicators: + y: 819726 config: hasMapTab: true - dimensions: povertyLine: "30" metric: share - indicator_path: - 819728: y + indicators: + y: 819728 config: hasMapTab: true - dimensions: povertyLine: "40" metric: share - indicator_path: - 819730: y + indicators: + y: 819730 config: hasMapTab: true - dimensions: povertyLine: "2.15" metric: shareVsGdp - indicator_path: - 819727: y - 539760: x + indicators: + y: 819727 + x: 539760 config: hasMapTab: true type: ScatterPlot @@ -101,9 +101,9 @@ views: - dimensions: povertyLine: "3.65" metric: shareVsGdp - indicator_path: - 819729: y - 539760: x + indicators: + y: 819729 + x: 539760 config: hasMapTab: true type: ScatterPlot @@ -112,9 +112,9 @@ views: - dimensions: povertyLine: "6.85" metric: shareVsGdp - indicator_path: - 819731: y - 539760: x + indicators: + y: 819731 + x: 539760 config: hasMapTab: true type: ScatterPlot @@ -123,9 +123,9 @@ views: - dimensions: povertyLine: "10" metric: shareVsGdp - indicator_path: - 819725: y - 539760: x + indicators: + y: 819725 + x: 539760 config: hasMapTab: true type: ScatterPlot @@ -134,9 +134,9 @@ views: - dimensions: povertyLine: "20" metric: shareVsGdp - indicator_path: - 819726: y - 539760: x + indicators: + y: 819726 + x: 539760 config: hasMapTab: true type: ScatterPlot @@ -145,9 +145,9 @@ views: - dimensions: povertyLine: "30" metric: shareVsGdp - indicator_path: - 819728: y - 539760: x + indicators: + y: 819728 + x: 539760 config: hasMapTab: true type: ScatterPlot @@ -156,9 +156,9 @@ views: - dimensions: povertyLine: "40" metric: shareVsGdp - indicator_path: - 819730: y - 539760: x + indicators: + y: 819730 + x: 539760 config: hasMapTab: true type: ScatterPlot @@ -167,64 +167,65 @@ views: - dimensions: povertyLine: "2.15" metric: absolute - indicator_path: - 819719: y + indicators: + y: 819719 config: hasMapTab: true - dimensions: povertyLine: "3.65" metric: absolute - indicator_path: - 819721: y + indicators: + y: 819721 config: hasMapTab: true - dimensions: povertyLine: "6.85" metric: absolute - indicator_path: - 819723: y + indicators: + y: 819723 config: hasMapTab: true - dimensions: povertyLine: "10" metric: absolute - indicator_path: - 819717: y + indicators: + y: 819717 config: hasMapTab: true - dimensions: povertyLine: "20" metric: absolute - indicator_path: - 819718: y + indicators: + y: 819718 config: hasMapTab: true - dimensions: povertyLine: "30" metric: absolute - indicator_path: - 819720: y + indicators: + y: 819720 config: hasMapTab: true - dimensions: povertyLine: "40" metric: absolute - indicator_path: - 819722: y + indicators: + y: 819722 config: hasMapTab: true - dimensions: povertyLine: all metric: share - indicator_path: - - 819811: y - - 819826: y - - 819824: y - - 819822: y - - 819820: y - - 819818: y - - 819816: y - - 819815: y + indicators: + y: + - 819811 + - 819826 + - 819824 + - 819822 + - 819820 + - 819818 + - 819816 + - 819815 config: type: StackedArea hasMapTab: true diff --git a/site/multiDim/MultiDimDataPageConfig.test.ts b/site/multiDim/MultiDimDataPageConfig.test.ts index f9ae23e417a..9f01273015a 100644 --- a/site/multiDim/MultiDimDataPageConfig.test.ts +++ b/site/multiDim/MultiDimDataPageConfig.test.ts @@ -48,14 +48,14 @@ describe("methods", () => { - dimensions: fuel_type: gas sector: transport - indicator_path: + indicators: emissions__gas__transport: y config: title: Natural gas emissions in transport - dimensions: fuel_type: oil sector: transport - indicator_path: + indicators: emissions__oil__transport: y config: title: Oil emissions in transport @@ -63,7 +63,7 @@ describe("methods", () => { - dimensions: # This dimension uses other fields; they probably are nicer to work with fuel_type: solar sector: electricity - indicator_path: + indicators: emissions__solar__transport: y config: title: ... @@ -97,29 +97,5 @@ describe("methods", () => { sector: "transport", }) expect(view).toBeDefined() - expect(view!.indicator_path).toEqual({ - emissions__gas__transport: "y", - }) - }) -}) - -describe("transformIndicatorPathObj", () => { - it("works", () => { - const obj = { - emissions__gas__transport: "y", - emissions__oil__transport: "y", - time: "x", - gdp_per_capita: "size", - } - const result = MultiDimDataPageConfig.transformIndicatorPathObj( - obj as any - ) - expect(result).toEqual({ - x: ["time"], - y: ["emissions__gas__transport", "emissions__oil__transport"], - color: [], - size: ["gdp_per_capita"], - table: [], - }) }) }) diff --git a/site/multiDim/MultiDimDataPageConfig.ts b/site/multiDim/MultiDimDataPageConfig.ts index 6143111ad19..408fa8f4790 100644 --- a/site/multiDim/MultiDimDataPageConfig.ts +++ b/site/multiDim/MultiDimDataPageConfig.ts @@ -2,19 +2,22 @@ import { Choice, ChoicesEnriched, DimensionEnriched, - MultiDimDataPageConfigType, + IndicatorEntryAfterPreProcessing, + MultiDimDataPageConfigPreProcessed, View, } from "./MultiDimDataPageTypes.js" -import { DimensionProperty, groupBy, keyBy } from "@ourworldindata/utils" +import { groupBy, keyBy } from "@ourworldindata/utils" export class MultiDimDataPageConfig { - private constructor(public readonly config: MultiDimDataPageConfigType) {} + private constructor( + public readonly config: MultiDimDataPageConfigPreProcessed + ) {} static fromJson(jsonString: string) { return new MultiDimDataPageConfig(JSON.parse(jsonString)) } - static fromObject(obj: MultiDimDataPageConfigType) { + static fromObject(obj: MultiDimDataPageConfigPreProcessed) { return new MultiDimDataPageConfig(obj) } @@ -38,7 +41,9 @@ export class MultiDimDataPageConfig { return keyBy(dimensionsEnriched, "slug") } - filterViewsByDimensions(dimensions: Record): View[] { + filterViewsByDimensions( + dimensions: Record + ): View[] { return this.config.views.filter((view) => { for (const [dimensionSlug, choiceSlug] of Object.entries( dimensions @@ -51,7 +56,9 @@ export class MultiDimDataPageConfig { // This'll only ever find one or zero views, and will throw an error // if more than one matching views were found - findViewByDimensions(dimensions: Record) { + findViewByDimensions( + dimensions: Record + ): View | undefined { const matchingViews = this.filterViewsByDimensions(dimensions) if (matchingViews.length === 0) return undefined if (matchingViews.length > 1) { @@ -132,40 +139,4 @@ export class MultiDimDataPageConfig { dimensionsWithAvailableChoices, } } - - static transformIndicatorPathObj( - indicatorPathObj: - | Record - | Array> - ): Record { - const emptyObj: Record = { - x: [], - y: [], - color: [], - size: [], - table: [], - } - if (Array.isArray(indicatorPathObj)) { - return indicatorPathObj.reduce((result, obj) => { - const transformed = - MultiDimDataPageConfig.transformIndicatorPathObj(obj) - for (const [dimension, indicatorPaths] of Object.entries( - transformed - )) { - result[dimension as DimensionProperty].push( - ...indicatorPaths - ) - } - return result - }, emptyObj) - } else { - return Object.entries(indicatorPathObj).reduce( - (result, [indicatorPath, dimension]) => { - result[dimension].push(indicatorPath) - return result - }, - emptyObj - ) - } - } } diff --git a/site/multiDim/MultiDimDataPageContent.tsx b/site/multiDim/MultiDimDataPageContent.tsx index 3b1721ae3fd..ea6d52b4ea2 100644 --- a/site/multiDim/MultiDimDataPageContent.tsx +++ b/site/multiDim/MultiDimDataPageContent.tsx @@ -35,7 +35,7 @@ import { DebugProvider } from "../gdocs/DebugContext.js" import { BAKED_BASE_URL, DATA_API_URL } from "../../settings/clientSettings.js" import Image from "../gdocs/components/Image.js" import { MultiDimDataPageConfig } from "./MultiDimDataPageConfig.js" -import { MultiDimDataPageConfigType } from "./MultiDimDataPageTypes.js" +import { MultiDimDataPageConfigPreProcessed } from "./MultiDimDataPageTypes.js" import AboutThisData from "../AboutThisData.js" import TopicTags from "../TopicTags.js" import MetadataSection from "../MetadataSection.js" @@ -48,7 +48,7 @@ import { useElementBounds } from "../hooks.js" import { MultiDimSettingsPanel } from "./MultiDimDataPageSettingsPanel.js" declare global { interface Window { - _OWID_MULTI_DIM_CONFIG: MultiDimDataPageConfigType + _OWID_MULTI_DIM_CONFIG: MultiDimDataPageConfigPreProcessed } } export const OWID_DATAPAGE_CONTENT_ROOT_ID = "owid-datapageJson-root" @@ -192,15 +192,23 @@ export const MultiDimDataPageContent = ({ }, [currentSettings, config]) const dimensionsConfig = useMemo(() => { - const dimObj = MultiDimDataPageConfig.transformIndicatorPathObj( - currentView?.indicator_path ?? {} - ) - return Object.entries(dimObj).flatMap(([property, variableIds]) => - variableIds.flatMap((variableId) => ({ - property: property as DimensionProperty, - variableId: parseInt(variableId), - })) - ) + const dimObj = currentView?.indicators + if (!dimObj) return [] + return Object.entries(dimObj) + .flatMap(([property, variableIds]) => { + if (Array.isArray(variableIds)) { + return variableIds.flatMap((variableId) => ({ + property: property as DimensionProperty, + variableId, + })) + } else { + return { + property: property as DimensionProperty, + variableId: variableIds, + } + } + }) + .filter((dim) => dim.variableId !== undefined) }, [currentView]) const [datapageDataFromVar, setDatapageDataFromVar] = @@ -208,7 +216,10 @@ export const MultiDimDataPageContent = ({ useEffect(() => { setDatapageDataFromVar(null) - const variableId = dimensionsConfig[0]?.variableId + const yIndicatorOrIndicators = currentView?.indicators["y"] + const variableId = Array.isArray(yIndicatorOrIndicators) + ? yIndicatorOrIndicators[0] + : yIndicatorOrIndicators if (!variableId) return const variableMetadata = cachedGetVariableMetadata(variableId) diff --git a/site/multiDim/MultiDimDataPageTypes.ts b/site/multiDim/MultiDimDataPageTypes.ts index b05805fe107..94dacd9b53e 100644 --- a/site/multiDim/MultiDimDataPageTypes.ts +++ b/site/multiDim/MultiDimDataPageTypes.ts @@ -1,14 +1,23 @@ -import { DimensionProperty } from "@ourworldindata/types" +// Indicator ID, catalog path, or maybe an array of those +export type IndicatorEntryBeforePreProcessing = string | number | undefined +export type IndicatorEntryAfterPreProcessing = number | undefined // catalog paths have been resolved to indicator IDs +export type MultiIndicatorEntry = IndicatorType | IndicatorType[] -export interface MultiDimDataPageConfigType { +interface MultiDimDataPageConfigType { name: string dimensions_title: string default_selection?: string[] common_indicator_path_prefix?: string dimensions: Dimension[] - views: View[] + views: View[] } +export type MultiDimDataPageConfigRaw = + MultiDimDataPageConfigType + +export type MultiDimDataPageConfigPreProcessed = + MultiDimDataPageConfigType + export interface Dimension { slug: string name: string @@ -33,11 +42,14 @@ export interface Choice { multi_select?: boolean } -export interface View { +export interface View { dimensions: Record // Keys: dimension slugs, values: choice slugs - indicator_path: - | Record - | Array> // Keys: indicator path, values: dimension (e.g. x, y, color, size) + indicators: { + y: MultiIndicatorEntry + x?: IndicatorType + size?: IndicatorType + color?: IndicatorType + } config?: Config } diff --git a/site/multiDim/config.yml b/site/multiDim/config.yml index c24c3262c4f..d56da699f9c 100644 --- a/site/multiDim/config.yml +++ b/site/multiDim/config.yml @@ -36,14 +36,14 @@ views: - dimensions: fuel_type: gas sector: transport - indicator_path: + indicators: emissions__gas__transport: y config: title: Natural gas emissions in transport - dimensions: fuel_type: oil sector: transport - indicator_path: + indicators: emissions__oil__transport: y config: title: Oil emissions in transport @@ -51,7 +51,7 @@ views: - dimensions: # This dimension uses other fields; they probably are nicer to work with fuel_type: solar sector: electricity - indicator_path: + indicators: emissions__solar__transport: y config: title: ...