Skip to content
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

Add graph based on for time period comparison #857

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

dimasciput
Copy link
Collaborator

For #856

Screen.Recording.2024-12-01.at.14.54.37.mov

@dimasciput dimasciput changed the title Add graph based on baseline period Add graph based on for time period comparison Dec 3, 2024
@dimasciput
Copy link
Collaborator Author

Added graph for progress period :

Screen.Recording.2024-12-03.at.14.20.11.mov

@amyburness amyburness linked an issue Dec 4, 2024 that may be closed by this pull request
1 task
@azvoleff
Copy link
Contributor

azvoleff commented Dec 6, 2024

Thanks! Flagging @boc84 for his review as well

@boc84
Copy link
Collaborator

boc84 commented Dec 6, 2024

Looks good. My first comment is about the terminology. I am not sure if we will be using the term "Progress" or ""SDG Status" anymore but this under discussion and not likely resolved until next year. I wonder could we maintain the functionality as is but allow flexibility to change the text later.

Secondly, if you check the first slide on this PPT, in the "old" way of calculating the SDG we used the full 20-year time series for SOC change in the reporting period. Please make sure this is possible in the current implementation.

Thirdly, are there constraints on the min and max year a country can report for either period? For example, should we prevent years beyond 2023 being selected? Or enforce a maximum number of years between initial and final years for a given dataset?
Default_Data_SDG_Progress_Calculation (003).pptx

@dimasciput
Copy link
Collaborator Author

@boc84

Thank you for the feedback!

I wonder could we maintain the functionality as is but allow flexibility to change the text later.

Yes, this can be easily updated. I already have a variable set up for the title.

Secondly, if you check the first slide on this PPT, in the "old" way of calculating the SDG, we used the full 20-year time series for SOC change in the reporting period. Please make sure this is possible in the current implementation.

This is indeed possible in the current implementation.

Thirdly, are there constraints on the minimum and maximum years a country can report for either period? For example, should we prevent years beyond 2023 from being selected, or enforce a maximum number of years between the initial and final years for a given dataset?

I’m currently following the previous constraints. For this ticket, the focus is mainly on the graph, which will automatically align with the dropdown selections. Technically, we can allow years beyond 2023, but handling that would be better suited for a separate ticket.

Copy link
Collaborator

@Samweli Samweli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Samweli
Copy link
Collaborator

Samweli commented Jan 9, 2025

@azvoleff @gabrieldaldegan @dimasciput I'm +1 on making these changes in a new separate dialog rather into a description panel as it is currently done.

@gdaldegan
Copy link
Contributor

Thanks Dimas for developing and implementing the graphical visualization, it's looking quite good! Glad that Brian already flagged that there might be some minor adjustments on the terms. As for limiting/enforcing the tool to reflect the UNCCD official baseline and/or reporting periods, my take is that we keep Trends.Earth flexible so users can pick any dates as they wish. Although Trends.Earth is designed to support countries to run analysis and prepare data for official reporting to UNCCD, we also have a large community of users that do not use the tool for that purpose, and enforcing dates would hinder those analysis.

@gdaldegan
Copy link
Contributor

@azvoleff @gabrieldaldegan @dimasciput I'm +1 on making these changes in a new separate dialog rather into a description panel as it is currently done.

could you please argue for the pros and cons of each approach? Having it within the description panel obviously have implications for visualizing the graphs when working on a small screen such as a laptop.

@Samweli
Copy link
Collaborator

Samweli commented Jan 10, 2025

@azvoleff @gabrieldaldegan @dimasciput I'm +1 on making these changes in a new separate dialog rather into a description panel as it is currently done.

could you please argue for the pros and cons of each approach? Having it within the description panel obviously have implications for visualizing the graphs when working on a small screen such as a laptop.

@gabrieldaldegan having it on a different dialog will decouple the new functionality from the algorithm dialog, provide enough space for future features expansion/addition, fix responsiveness issues and better UI components management. One of the cons is that user will need one extra click in order to access the functionality.

@mvmaltitz
Copy link
Collaborator

@dimasciput

From Gabriel in email on 10 Jan 2025:
Regarding the point 3 below on the graphical tool for visualizing the time span of each sub-indicator and final SDG 15.3.1 Indicator, I left comments in Github and am convinced that it would be better to have it on a separate dialog, Thanks Samweli for your inputs and please go ahead with that implementation.

@dimasciput
Copy link
Collaborator Author

@Samweli @gabrieldaldegan @gdaldegan here's the updated timeline view :

Screen.Recording.2025-01-17.at.14.26.53.mov

@azvoleff azvoleff requested a review from gdaldegan January 21, 2025 21:10
@azvoleff
Copy link
Contributor

@gabrieldaldegan have you tested/confirmed this one?

@gdaldegan
Copy link
Contributor

@Samweli, please share a zipfile to test this updated function

@Samweli
Copy link
Collaborator

Samweli commented Jan 22, 2025

@Samweli, please share a zipfile to test this updated function

@gdaldegan here it is https://github.com/ConservationInternational/trends.earth/actions/runs/12830984190/artifacts/2447280066.

@Samweli
Copy link
Collaborator

Samweli commented Jan 22, 2025

@gdaldegan I have also attached a gif here that shows how to grab a plugin zip file for any pull request.

how_to_download_pr_artifacts

@gdaldegan
Copy link
Contributor

@gdaldegan I have also attached a gif here that shows how to grab a plugin zip file for any pull request.

great, thanks @Samweli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants