You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API optimization: Since Q2 and Q3 use the same API, avoid calling it twice (share/cache results). - @jchemuttPRIORITY
Exposure Dataset incorrect: Seems to be a mismatch between the exposure dataset being used & the hazard exposure values. - @bjybergPRIORITY
Part of a wider data issue that needs addressed/re-run, however handled for now by limiting to usd15
API scope: API should really only handle main filtering and querying, additional aggregation and formatting needs to happen in the notebook. - @jchemuttPRIORITY
Performance: Overall performance is pretty poor. It take a long time for elements to update after change admin selections for example. It feels just as slow as if we were not using the API, so this definitely needs addressed. PRIORITY
Download data rather than fetch it on each query. I Imagine this is something like the persistent duckdb database with something like if table X does not exist, create table x.
Look at other bottlenecks, currently 3-5 minute wait per query is not good.
API url as a constant at the top of the notebook rather than in-lined
Front-end
Advanced Controls
Group/Commodity select
Remove custom (pick manually) as this is a duplicate of All
When a group is selected and no individual commodities are selected, what happens? If it is showing the total for all commodities in the group (i.e. the same as having all commodities selected) it should select all within the commodities selector.
Add select/deselect button to the commodity multi select. It should just be enabled with a flag of {selectAll: true} or something similar (look at the code/documentation for the multi-select).
Region multi-select: Selecting “Full Country” should automatically select all regions for that country.
Some bug preventing the linking/updates across notebook @bjyberg look into
Sorting: Regions and Districts should be listed alphabetically. (Addressed if you use Brayden admin select)
Glitchy Page: The page moves around and scrolls randomly on user input sometimes. (If I hover on q2 figure, the page scrolls up????? same with q4 and q1)
NOTE: I think this is due to a lot of complexity around the page structure. I think a lot of this can and should be simplified (see how other notebooks are implemented) with minimal additional divs and similar.
Filter placement: Remove Geographies, Commodities, and Scenarios from Advanced Filters. Place them inside each question and keep them synchronized across questions.
Summary tables: Summary tables should display the same data as the charts.
Admin Select Pattern:
General Path:
admin0 is null/not selected -> show all of SSA at country level
admin0 is not null (is selected) and admin1 is null -> Show selected countries at admin 1 level (e.g., all Kenya counties)
admin0 is not null and admin 1 is not null -> Show all admin 2 data within the selected admin 1 regions
admin2 is selected -> data and map same as above and admin2 region is highlighted on the map
Dataset: Swap the dataset used for total exposure with the link provided by Brayden.
Increase font size for plots. (code in meeting chat)
Value formatting: Standardize plot values using millions / billions (consistent units across plots).
Code Cleaning: Clean out dead/hanging code and harmonize structure with rest of atlas notebooks so it is more modular and maintainable.
Styling: Colors for figures and page styling needs to be harmonized with rest of the notebooks, figures need to be cleaned (labels in correct places, margins, etc.)
Bars for compound hazards should be dodged not stacked
Computation error in the % exposed for the bars, it is correct elsewhere in the notebook, so something strange is happening here. For example, with default selections, wet (any) is less than wet (only) + other wet compound hazards (4.96 % vs > 11%). This should not be the case. Similar calculation is performed in "Which crops are most exposed?" and seems to be correct, so that should be a good place to look for differences.
Left and right table column headings in quick insight should be changed to more useful scenario names (ssp585 - 2040, historic, etc.)
x-axis needs to show on both top and bottom of plot.
Q5
Periods: Q5 is missing one time period. PRIORITY
Uncertainty: The Uncertainty control in Q5 is not working.
Controls
Scenarios and periods should use multi select code provided by Brayden PRIORITY
The Uncertainty control in Q5 is not working. PRIORITY (Use the value_sd column in data)
Atlas Styling is not being applied correctly hazard dropdown.
Controls need formatting to look cleaner. Use Inputs.form from observable inputs.
Allow free y-axis selection here as well (Same behavior as q3)
Facet plot as a grid (2x2 shape rather than current 4x1 shape)
Historic Comparison:
Calculation method questionable @bjyberg@peetmate to think about method
Add difference from baseline (show absolute values) in addition to current index method@jchemutt
How to deal with index calculation when the values are small? (z-score normalize?)
No hazard in baseline, things get hotter so we have some increase in hazard (100$ in baseline $50m exposed in future how to handle)
Bug in axis when uncertainty is selected. Things are flipped, formatting is not applied, etc.
Bug where if y-axis free is not-selected and uncertainty is selected, the figure disappears
Rename actual value to absolute value
Tooltip needed/not appearing (use opbservable plot tip, not title element)
Back-end
Front-end
Advanced Controls
Cross notebook - @jchemutt
Top Priorities (Week of March 1) PRIORITY
Before Completion
Individual Questions - @jchemutt
Q1 (upset plot)
Q2
Q3
Q4 (the map & bars)
Q5
tip, nottitleelement)