-
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/cumulative emissions widget #3692
Conversation
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.
Great work! A complicated one! Only a small change needed to make sure we don't have duplicate keys.
@@ -0,0 +1,50 @@ | |||
export default { | |||
widget: 'firesAlerts', |
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.
this needs to change otherwise we have two widgets with the same
analysis: true, | ||
types: ['country'], | ||
admins: ['adm0'], | ||
layers: [], |
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.
if no layers remove this key.
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.
Excellent work. Only some small changes to make this one unique 🌷
if (!data || isEmpty(data)) return null; | ||
|
||
const { variable } = settings; | ||
const target = variable === 'cumulative_emissions' ? 265000000 : 988880; |
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.
Can we clarify what these numbers are and place them as CONSTS at the top.
…uality/gfw into feature/cumulative-emissions-widget
Overview
Weekly forest disturbance alerts to track forest loss and emissions. This widget features a line chart showing cumulative emissions and area of loss. It replicates the behaviour of the glad alerts widget from climate GFW.
Demo