ConclusionNL / global-mitigation-potential-atlas

The Global Mitigation Potential Atlas - a web based portal to provide global insight in the potential for reducing carbon emissions through governmental policies and application of technologies
2 stars 0 forks source link

Add additional radio-button to heatmap #101

Closed OmNomNomzzz closed 11 months ago

OmNomNomzzz commented 11 months ago

After additional discussions with the policy team and the stakeholders. We were able to get some use out of the "Mitigation Cost". But only for the heatmap, not for the subsequent parts.

I.e. we need another radio button below the existing ones on the heatmap. This should be labeled "Average Mitigation Cost to Reach Net Zero ($/tCO2e)" image

This will also be additional information displayed when users click a country. This should be in the following format: "Mitigation Cost to Reach Net Zero xx $/tCO2e"

image

Note that this does not need to be updated in any other place. like collaboration, etc.

I have added a column to heatmap_collaboration.csv file. It looks like the following: image

I have uploaded the file with added column name in box: Portal development -> Modelling Content Ready for Upload -> Test Data For Website -> heatmap_collaboration.csv https://climateanalytics.box.com/s/m8l1f9is5ugb07taimnemhg5i9ml6o9f

This is related to Issue #99 .

lucasjellema commented 11 months ago

The label you propose seems quite long: Average Mitigation Cost to Reach Net Zero ($/tCO2e)

it will cause layout issues in both places. Can you suggest something shorter?

image image Note: when on collaboration mode and multiple countries are selected - how should we derive the heatmap value for the selected countries for this new property? #61 was implemented but now needs to be amended because of this new property

lucasjellema commented 11 months ago

two issues with the values:

lucasjellema commented 11 months ago

The additional option and property are added.

image

OmNomNomzzz commented 11 months ago

Additional property implementation works as intended.

Label too long: The label name can be shortened to "Net Zero Mitigation Cost ($/tCO2e)"

What to do in international collaboration mode: This value will not be displayed in international collaboration mode. So do not change the international collaboration algorithm. I see that it is not implemented in international collaboration mode. This is as intended. We are still unable to figure out how to deal with the value in international collaboration mode. The old issue still stands unsolved. I.e. we DO NOT need it in the following locations: image image

How to deal with issue #61 You do not need to change the logic. You still read the respective number from the collaboration, just like for the mitigation potential. So for the file attached, ID would be 24.2 $/tCOe2, SG will have no value. SG+ID would be 17.9 $/tCO2e.

Singapore does now have a value: Sorry, I forgot to add this detail. Some countries will not have a value as they cannot reach net zero. I have current set them as "". They should be grayed out, perhaps the same a the countries not in the heatmap.csv file. This was an issue we faced earlier on when this was removed. We did not know if it was politically sensitive to say this. However, it was determined that itshould solved by not having a value for some countries. When you click a country (only SG in this case), it currently says "NaN". I do not know what it should say. I need to get feedback. So it is ok to leave it as is.

Large digits: I shall raise a new issue to handle all digits on the platform. It will be clearer.

lucasjellema commented 11 months ago

I cannot find a file that has a value for Singapore and where the column names are aligned with 10,20 and 50. @OmNomNomzzz Please let me know where to find it.

I have updated the label to this shorter alternative

Image

OmNomNomzzz commented 11 months ago

Added issue to deal with number of digits #103

OmNomNomzzz commented 11 months ago

image https://climateanalytics.box.com/s/b562mutvcyq9dpjermwekcdu2xkx4qf1

Should now have the values for Singapore for 0, 10, 20, 50. But it will not have any values for "Mitigation Cost".

OmNomNomzzz commented 11 months ago

The website now has the correct labels. It also now takes in files with the corresponding label for 0, 10, 20, 50. This issue has been resolved.