Skip to content

Commit

Permalink
Add packaging consumption as goal.
Browse files Browse the repository at this point in the history
  • Loading branch information
sampottinger committed Sep 8, 2024
1 parent 9661ec6 commit 396b1a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const GOALS = {
ghg: "ghg",
primaryProduction: "primaryProduction",
secondaryProduction: "secondaryProduction",
consumptionPackagingMT: "consumptionPackagingMT"

Check failure on line 131 in js/const.js

View workflow job for this annotation

GitHub Actions / Test App

Missing trailing comma
};

const STANDARD_ATTR_NAMES = new Map();
Expand Down
6 changes: 6 additions & 0 deletions js/goals.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ function getGoals(target) {
"value": getRegionOutput(state, region).get("secondaryProductionMT"),
};
},
(state, region) => {
return {
"goal": "consumptionPackagingMT",
"value": getRegionOutput(state, region).get("consumptionPackagingMT"),
};
},
];

const goals = new Map();
Expand Down
1 change: 1 addition & 0 deletions js/sim_presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const STANDALONE_X_TITLES = {
"ghg": "Global Gross GHG (CO2e Mt)",
"primaryProduction": "Primary Production (Mt)",
"secondaryProduction": "Secondary Production (Mt)",
"consumptionPackagingMT": "Packaging Consumption (Mt)"

Check failure on line 50 in js/sim_presenter.js

View workflow job for this annotation

GitHub Actions / Test App

Missing trailing comma
};

/**
Expand Down

0 comments on commit 396b1a8

Please sign in to comment.