From 9d30825a9df537a35334df8b8720e54b9ee59a51 Mon Sep 17 00:00:00 2001 From: russbiggs Date: Mon, 19 Aug 2024 23:12:34 +0000 Subject: [PATCH] deploy: e130cc5491a5d1d2de07492632b3c73471816fbe --- index.html | 4 ++-- indices/china.html | 2 +- indices/finland.html | 2 +- indices/hong-kong.html | 10 +++++----- indices/india.html | 2 +- indices/indonesia.html | 2 +- indices/kuwait.html | 2 +- indices/macao.html | 2 +- indices/malaysia.html | 2 +- indices/mexico.html | 2 +- indices/singapore.html | 2 +- indices/south-africa.html | 2 +- indices/south-korea.html | 10 +++++----- indices/taiwan.html | 2 +- indices/thailand.html | 2 +- indices/uk.html | 30 ++++++++++++------------------ indices/us.html | 2 +- indices/vietnam.html | 2 +- methods.html | 4 ++-- pollutants.html | 4 ++-- 20 files changed, 42 insertions(+), 48 deletions(-) diff --git a/index.html b/index.html index 104c8e2..255fe3c 100644 --- a/index.html +++ b/index.html @@ -53,8 +53,8 @@ import {define} from "./_observablehq/client.js"; import {registerFile} from "./_observablehq/stdlib.js"; -registerFile("./data/breakpoints.csv", {"name":"./data/breakpoints.csv","mimeType":"text/csv","path":"./_file/data/breakpoints.4c7e0998.csv","lastModified":1724108597807}); -registerFile("./data/countries.json", {"name":"./data/countries.json","mimeType":"application/json","path":"./_file/data/countries.bc8a3fb7.json","lastModified":1724108581855}); +registerFile("./data/breakpoints.csv", {"name":"./data/breakpoints.csv","mimeType":"text/csv","path":"./_file/data/breakpoints.4c7e0998.csv","lastModified":1724109151182}); +registerFile("./data/countries.json", {"name":"./data/countries.json","mimeType":"application/json","path":"./_file/data/countries.bc8a3fb7.json","lastModified":1724109135418}); define({id: "ace88a2b", inputs: ["FileAttachment"], outputs: ["breakpoints","countriesMap"], body: async (FileAttachment) => { const breakpoints = await FileAttachment("./data/breakpoints.csv").csv({typed: true}); diff --git a/indices/china.html b/indices/china.html index cc4f4d7..f7b8101 100644 --- a/indices/china.html +++ b/indices/china.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/china/breakpoints.csv", {"name":"../data/china/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/china/breakpoints.8786d209.csv","lastModified":1724108581855}); +registerFile("../data/china/breakpoints.csv", {"name":"../data/china/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/china/breakpoints.8786d209.csv","lastModified":1724109135418}); define({id: "244d237b", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/finland.html b/indices/finland.html index 82f9aa7..34a9742 100644 --- a/indices/finland.html +++ b/indices/finland.html @@ -24,7 +24,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/finland/breakpoints.csv", {"name":"../data/finland/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/finland/breakpoints.79410ea7.csv","lastModified":1724108581855}); +registerFile("../data/finland/breakpoints.csv", {"name":"../data/finland/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/finland/breakpoints.79410ea7.csv","lastModified":1724109135422}); define({id: "b2d40abb", inputs: ["FileAttachment"], outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale","breakpoints","data"], body: async (FileAttachment) => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/hong-kong.html b/indices/hong-kong.html index a450b0a..3838ce3 100644 --- a/indices/hong-kong.html +++ b/indices/hong-kong.html @@ -22,11 +22,11 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../imgs/hk_icon_high.svg", {"name":"../imgs/hk_icon_high.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_high.8c7fab17.svg","lastModified":1724108581855}); -registerFile("../imgs/hk_icon_low.svg", {"name":"../imgs/hk_icon_low.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_low.9d09bf10.svg","lastModified":1724108581855}); -registerFile("../imgs/hk_icon_moderate.svg", {"name":"../imgs/hk_icon_moderate.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_moderate.ffd7f107.svg","lastModified":1724108581855}); -registerFile("../imgs/hk_icon_serious.svg", {"name":"../imgs/hk_icon_serious.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_serious.18ac9534.svg","lastModified":1724108581859}); -registerFile("../imgs/hk_icon_very_high.svg", {"name":"../imgs/hk_icon_very_high.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_very_high.76d59c39.svg","lastModified":1724108581859}); +registerFile("../imgs/hk_icon_high.svg", {"name":"../imgs/hk_icon_high.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_high.8c7fab17.svg","lastModified":1724109135422}); +registerFile("../imgs/hk_icon_low.svg", {"name":"../imgs/hk_icon_low.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_low.9d09bf10.svg","lastModified":1724109135422}); +registerFile("../imgs/hk_icon_moderate.svg", {"name":"../imgs/hk_icon_moderate.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_moderate.ffd7f107.svg","lastModified":1724109135422}); +registerFile("../imgs/hk_icon_serious.svg", {"name":"../imgs/hk_icon_serious.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_serious.18ac9534.svg","lastModified":1724109135422}); +registerFile("../imgs/hk_icon_very_high.svg", {"name":"../imgs/hk_icon_very_high.svg","mimeType":"image/svg+xml","path":"../_file/imgs/hk_icon_very_high.76d59c39.svg","lastModified":1724109135422}); define({id: "3528a5fb", outputs: ["colorScale"], body: async () => { const {colorScale} = await import("../_import/components/color-scale.012d9cb9.js"); diff --git a/indices/india.html b/indices/india.html index be2468a..af5f64e 100644 --- a/indices/india.html +++ b/indices/india.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/india/breakpoints.csv", {"name":"../data/india/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/india/breakpoints.23fd3361.csv","lastModified":1724108581855}); +registerFile("../data/india/breakpoints.csv", {"name":"../data/india/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/india/breakpoints.23fd3361.csv","lastModified":1724109135422}); define({id: "244d237b", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/indonesia.html b/indices/indonesia.html index 04de675..c11092c 100644 --- a/indices/indonesia.html +++ b/indices/indonesia.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/indonesia/breakpoints.csv", {"name":"../data/indonesia/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/indonesia/breakpoints.ad94f79f.csv","lastModified":1724108581855}); +registerFile("../data/indonesia/breakpoints.csv", {"name":"../data/indonesia/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/indonesia/breakpoints.ad94f79f.csv","lastModified":1724109135422}); define({id: "063a0535", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js")]); diff --git a/indices/kuwait.html b/indices/kuwait.html index 5e5299e..ea882b4 100644 --- a/indices/kuwait.html +++ b/indices/kuwait.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/kuwait/breakpoints.csv", {"name":"../data/kuwait/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/kuwait/breakpoints.61b29dd8.csv","lastModified":1724108581855}); +registerFile("../data/kuwait/breakpoints.csv", {"name":"../data/kuwait/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/kuwait/breakpoints.61b29dd8.csv","lastModified":1724109135422}); define({id: "332657d7", inputs: ["FileAttachment"], outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale","breakpoints","data"], body: async (FileAttachment) => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/macao.html b/indices/macao.html index 584946b..3621b0f 100644 --- a/indices/macao.html +++ b/indices/macao.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/macao/breakpoints.csv", {"name":"../data/macao/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/macao/breakpoints.4ef7bc91.csv","lastModified":1724108581855}); +registerFile("../data/macao/breakpoints.csv", {"name":"../data/macao/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/macao/breakpoints.4ef7bc91.csv","lastModified":1724109135422}); define({id: "063a0535", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js")]); diff --git a/indices/malaysia.html b/indices/malaysia.html index 9fa3aa2..2e66425 100644 --- a/indices/malaysia.html +++ b/indices/malaysia.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/malaysia/breakpoints.csv", {"name":"../data/malaysia/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/malaysia/breakpoints.f5b03d07.csv","lastModified":1724108581855}); +registerFile("../data/malaysia/breakpoints.csv", {"name":"../data/malaysia/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/malaysia/breakpoints.f5b03d07.csv","lastModified":1724109135422}); define({id: "063a0535", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js")]); diff --git a/indices/mexico.html b/indices/mexico.html index 6397fa5..b8e53c4 100644 --- a/indices/mexico.html +++ b/indices/mexico.html @@ -24,7 +24,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/mexico/breakpoints.csv", {"name":"../data/mexico/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/mexico/breakpoints.ae943615.csv","lastModified":1724108581855}); +registerFile("../data/mexico/breakpoints.csv", {"name":"../data/mexico/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/mexico/breakpoints.ae943615.csv","lastModified":1724109135422}); define({id: "53529d75", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/singapore.html b/indices/singapore.html index 6405af2..d6348e5 100644 --- a/indices/singapore.html +++ b/indices/singapore.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/singapore/breakpoints.csv", {"name":"../data/singapore/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/singapore/breakpoints.a0c8e8f8.csv","lastModified":1724108581855}); +registerFile("../data/singapore/breakpoints.csv", {"name":"../data/singapore/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/singapore/breakpoints.a0c8e8f8.csv","lastModified":1724109135422}); define({id: "063a0535", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js")]); diff --git a/indices/south-africa.html b/indices/south-africa.html index 0415b47..de834b2 100644 --- a/indices/south-africa.html +++ b/indices/south-africa.html @@ -20,7 +20,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/south-africa/breakpoints.csv", {"name":"../data/south-africa/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/south-africa/breakpoints.cac83c4e.csv","lastModified":1724108581855}); +registerFile("../data/south-africa/breakpoints.csv", {"name":"../data/south-africa/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/south-africa/breakpoints.cac83c4e.csv","lastModified":1724109135422}); define({id: "063a0535", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js")]); diff --git a/indices/south-korea.html b/indices/south-korea.html index 3db38a4..aca4455 100644 --- a/indices/south-korea.html +++ b/indices/south-korea.html @@ -25,11 +25,11 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/south-korea/breakpoints.csv", {"name":"../data/south-korea/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/south-korea/breakpoints.b85998e4.csv","lastModified":1724108581855}); -registerFile("../imgs/211_character01.webp", {"name":"../imgs/211_character01.webp","mimeType":"image/webp","path":"../_file/imgs/211_character01.d686a166.webp","lastModified":1724108581855}); -registerFile("../imgs/211_character02.webp", {"name":"../imgs/211_character02.webp","mimeType":"image/webp","path":"../_file/imgs/211_character02.c4106097.webp","lastModified":1724108581855}); -registerFile("../imgs/211_character03.webp", {"name":"../imgs/211_character03.webp","mimeType":"image/webp","path":"../_file/imgs/211_character03.541f8db2.webp","lastModified":1724108581855}); -registerFile("../imgs/211_character04.webp", {"name":"../imgs/211_character04.webp","mimeType":"image/webp","path":"../_file/imgs/211_character04.f089f245.webp","lastModified":1724108581855}); +registerFile("../data/south-korea/breakpoints.csv", {"name":"../data/south-korea/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/south-korea/breakpoints.b85998e4.csv","lastModified":1724109135422}); +registerFile("../imgs/211_character01.webp", {"name":"../imgs/211_character01.webp","mimeType":"image/webp","path":"../_file/imgs/211_character01.d686a166.webp","lastModified":1724109135422}); +registerFile("../imgs/211_character02.webp", {"name":"../imgs/211_character02.webp","mimeType":"image/webp","path":"../_file/imgs/211_character02.c4106097.webp","lastModified":1724109135422}); +registerFile("../imgs/211_character03.webp", {"name":"../imgs/211_character03.webp","mimeType":"image/webp","path":"../_file/imgs/211_character03.541f8db2.webp","lastModified":1724109135422}); +registerFile("../imgs/211_character04.webp", {"name":"../imgs/211_character04.webp","mimeType":"image/webp","path":"../_file/imgs/211_character04.f089f245.webp","lastModified":1724109135422}); define({id: "186caa29", inputs: ["FileAttachment"], outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale","breakpoints","data"], body: async (FileAttachment) => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/taiwan.html b/indices/taiwan.html index a9ecb70..2a4fb97 100644 --- a/indices/taiwan.html +++ b/indices/taiwan.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/taiwan/breakpoints.csv", {"name":"../data/taiwan/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/taiwan/breakpoints.a397d5c7.csv","lastModified":1724108581855}); +registerFile("../data/taiwan/breakpoints.csv", {"name":"../data/taiwan/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/taiwan/breakpoints.a397d5c7.csv","lastModified":1724109135422}); define({id: "63c26e98", inputs: ["FileAttachment"], outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale","breakpoints","data"], body: async (FileAttachment) => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/thailand.html b/indices/thailand.html index 64fa0ec..735ce01 100644 --- a/indices/thailand.html +++ b/indices/thailand.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/thailand/breakpoints.csv", {"name":"../data/thailand/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/thailand/breakpoints.f352e89c.csv","lastModified":1724108581855}); +registerFile("../data/thailand/breakpoints.csv", {"name":"../data/thailand/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/thailand/breakpoints.f352e89c.csv","lastModified":1724109135422}); define({id: "bf3b6a10", inputs: ["FileAttachment"], outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale","breakpoints","data"], body: async (FileAttachment) => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/uk.html b/indices/uk.html index ff5c88f..a8f7ae5 100644 --- a/indices/uk.html +++ b/indices/uk.html @@ -20,7 +20,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/uk/breakpoints.csv", {"name":"../data/uk/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/uk/breakpoints.c6361046.csv","lastModified":1724108581855}); +registerFile("../data/uk/breakpoints.csv", {"name":"../data/uk/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/uk/breakpoints.c6361046.csv","lastModified":1724109135422}); define({id: "244d237b", outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale"], body: async () => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); @@ -35,26 +35,20 @@ return {breakpoints,data}; }}); -define({id: "cee6560c", inputs: ["colorScale","colorScaleReshape","data","display"], body: async (colorScale,colorScaleReshape,data,display) => { +define({id: "e241919f", inputs: ["colorScale","display"], body: async (colorScale,display) => { display(await( -colorScale(colorScaleReshape(data, false)) +colorScale([ + { label: 'Low', color: '#009900', range:'1-3'}, + { label: 'Moderate', color: '#ff9900', range: '4-6' }, + { label: 'High', color: '#ff0000', range: '7-9' }, + { label: 'Very High', color: '#990099', range: '10'}, +]) )) }}); -define({id: "16d47932", inputs: ["colorScale","display"], body: async (colorScale,display) => { +define({id: "cee6560c", inputs: ["colorScale","colorScaleReshape","data","display"], body: async (colorScale,colorScaleReshape,data,display) => { display(await( -colorScale([ - { label: 'Low', color: '#9cfe9c' }, - { label: 'Low', color: '#30fe00'}, - { label: 'Low', color: '#30ce00' }, - { label: 'Moderate', color: '#fffe00' }, - { label: 'Moderate', color: '#fecf02'}, - { label: 'Moderate', color: '#fe9a01'}, - { label: 'High', color: '#ff6363' }, - { label: 'High', color: '#ff0000'}, - { label: 'High', color: '#990000' }, - { label: 'Very High', color: '#ce30fe'}, -]) +colorScale(colorScaleReshape(data, false)) )) }}); @@ -138,10 +132,10 @@

The composite index uses a four color color scale:

-
+

Note: Adapted from “Daily Air Quality Index” (n.d.), https://uk-air.defra.gov.uk/air-pollution/daqi [2]. Accessed 12 August 2024.

Sub-indexes have a separate, expanded color scale:

-
+

Note: Adapted from “Guide to UK Air Pollution Information
Resources” (June 2014), https://uk-air.defra.gov.uk/assets/documents/reports/cat14/1406191156_060618_Guide_to_UK_Air_Pollution_Information_Resources-issue_2-FINAL.pdf [3]. Accessed 12 August 2024.

Methods

diff --git a/indices/us.html b/indices/us.html index 9169615..d9a9c95 100644 --- a/indices/us.html +++ b/indices/us.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/us/breakpoints.csv", {"name":"../data/us/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/us/breakpoints.676e4315.csv","lastModified":1724108581855}); +registerFile("../data/us/breakpoints.csv", {"name":"../data/us/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/us/breakpoints.676e4315.csv","lastModified":1724109135422}); define({id: "570412b1", inputs: ["FileAttachment"], outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale","breakpoints","data"], body: async (FileAttachment) => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/indices/vietnam.html b/indices/vietnam.html index 46aa2eb..70b39e4 100644 --- a/indices/vietnam.html +++ b/indices/vietnam.html @@ -25,7 +25,7 @@ import {define} from "../_observablehq/client.js"; import {registerFile} from "../_observablehq/stdlib.js"; -registerFile("../data/vietnam/breakpoints.csv", {"name":"../data/vietnam/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/vietnam/breakpoints.7752d174.csv","lastModified":1724108581855}); +registerFile("../data/vietnam/breakpoints.csv", {"name":"../data/vietnam/breakpoints.csv","mimeType":"text/csv","path":"../_file/data/vietnam/breakpoints.7752d174.csv","lastModified":1724109135422}); define({id: "7ba43346", inputs: ["FileAttachment"], outputs: ["breakpointsTable","parseBreakpointsCsv","tableReshape","colorScaleReshape","colorScale","breakpoints","data"], body: async (FileAttachment) => { const [{breakpointsTable}, {parseBreakpointsCsv, tableReshape, colorScaleReshape}, {colorScale}] = await Promise.all([import("../_import/components/table.49226d0f.js"), import("../_import/utils/utils.27dc2659.js"), import("../_import/components/color-scale.012d9cb9.js")]); diff --git a/methods.html b/methods.html index 345cdc1..cfddd01 100644 --- a/methods.html +++ b/methods.html @@ -65,8 +65,8 @@ import {define} from "./_observablehq/client.js"; import {registerFile} from "./_observablehq/stdlib.js"; -registerFile("./data/breakpoints.csv", {"name":"./data/breakpoints.csv","mimeType":"text/csv","path":"./_file/data/breakpoints.4c7e0998.csv","lastModified":1724108597807}); -registerFile("./data/countries.json", {"name":"./data/countries.json","mimeType":"application/json","path":"./_file/data/countries.bc8a3fb7.json","lastModified":1724108581855}); +registerFile("./data/breakpoints.csv", {"name":"./data/breakpoints.csv","mimeType":"text/csv","path":"./_file/data/breakpoints.4c7e0998.csv","lastModified":1724109151182}); +registerFile("./data/countries.json", {"name":"./data/countries.json","mimeType":"application/json","path":"./_file/data/countries.bc8a3fb7.json","lastModified":1724109135418}); define({id: "22ed529a", outputs: ["piecewiseChart"], body: async () => { const {piecewiseChart} = await import("./_import/components/piecewise-chart.02a1dea5.js"); diff --git a/pollutants.html b/pollutants.html index 6f60d02..592fa19 100644 --- a/pollutants.html +++ b/pollutants.html @@ -17,8 +17,8 @@ import {define} from "./_observablehq/client.js"; import {registerFile} from "./_observablehq/stdlib.js"; -registerFile("./data/breakpoints.csv", {"name":"./data/breakpoints.csv","mimeType":"text/csv","path":"./_file/data/breakpoints.4c7e0998.csv","lastModified":1724108597807}); -registerFile("./data/countries.json", {"name":"./data/countries.json","mimeType":"application/json","path":"./_file/data/countries.bc8a3fb7.json","lastModified":1724108581855}); +registerFile("./data/breakpoints.csv", {"name":"./data/breakpoints.csv","mimeType":"text/csv","path":"./_file/data/breakpoints.4c7e0998.csv","lastModified":1724109151182}); +registerFile("./data/countries.json", {"name":"./data/countries.json","mimeType":"application/json","path":"./_file/data/countries.bc8a3fb7.json","lastModified":1724109135418}); define({id: "d8e36fbb", inputs: ["FileAttachment"], outputs: ["breakpoints","countriesMap"], body: async (FileAttachment) => { const breakpoints = await FileAttachment("./data/breakpoints.csv").csv({typed: true});