Skip to content

Commit

Permalink
exclude uk and mexico from piecewise chart
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs committed Aug 15, 2024
1 parent 8a13b1d commit 31813b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const breakpoints = await FileAttachment('./data/breakpoints.csv').csv({typed: t
const countriesMap = await FileAttachment('./data/countries.json').json();
let pm2524hr = breakpoints.filter(o => o.pollutant == 'PM2.5' && o.averaging_period == '24');
pm2524hr = pm2524hr.map(o => { o.concentration_upper ? o.concentration_upper : o.concentration_upper = 500; return o})
pm2524hr = pm2524hr.filter(o => ['PE', 'MX', 'GB'].indexOf(o.ISO) >= 0) // Peru, UK and Mexico have a 24 hr average but do not use the piecewise
pm2524hr = pm2524hr.filter(o => ['PE', 'MX', 'GB'].indexOf(o.ISO) < 0) // Peru, UK and Mexico have a 24 hr average but do not use the piecewise
```

```js
Expand Down
2 changes: 1 addition & 1 deletion observablehq.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
header: '<h1 class="gradient-title">Air Quality Index Hub</h1>', // what to show in the header (HTML)
footer: '<div>Developed by <a href="https://openaq.org">OpenAQ</a>. Are we missing an AQI? Did you spot a bug? <a href="https://github.com/openaq/aqi-hub">contribute on github</a></div><div>Content licensed <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a></div>', // what to show in the footer (HTML)
toc: true, // whether to show the table of contents
pager: false, // whether to show previous & next links in the footer
pager: true, // whether to show previous & next links in the footer
style: "style.css",
root: "docs", // path to the source root for preview
output: "dist", // path to the output root for build
Expand Down

0 comments on commit 31813b0

Please sign in to comment.