-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/whrc biomass widget (simple sentence) #3677
Conversation
Note when merging: file |
Looks like nothing changes with canopy setting - maybe the table that was generated was only done for a default canopy threshold. I will need to double check this. |
Can you update this PR description etc to match the new features. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like it is working really nicely, from an intention stand-point you can go ahead and merge this when ready.
{formatNumber({ num: item.value, unit })} | ||
{formatNumber({ | ||
num: item.value, | ||
unit: item.unit ? item.unit : unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not item.unit || unit
?
409000a
to
11ad8d3
Compare
Overview
This widget features a ranked list and information about biomass density and total biomass of a region. It has settings to change tree cover threshold, as well as a "view on map" button (above ground biomass density).
On global, it shows the top 5 countries by total biomass, and on every other region the ranked list is ordered according to the variable that is selected. The list shows the current region in the middle, and the two above and below.
The widget uses the data from the whrc-biomass endpoint.