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

Show trends for each region on the scores globe #45

Closed
1 task done
robyngit opened this issue Jun 23, 2021 · 7 comments
Closed
1 task done

Show trends for each region on the scores globe #45

robyngit opened this issue Jun 23, 2021 · 7 comments
Assignees
Labels
data viz Related to any of the D3 data visualization elements enhancement New feature or request priority: high An issue that is of high importance or urgency scores globe Related to the global scores map that is shown on the global scores page

Comments

@robyngit
Copy link
Member

robyngit commented Jun 23, 2021

Add a toggle for the scores globe that switches between scores over the 10 year period (what's currently shown) and trends for each region.

  • To implement this, we first need trends data from @Melsteroni. Ideally, this CSV should use the same headers, country codes, and goal codes as the scores CSV
@robyngit robyngit added enhancement New feature or request data viz Related to any of the D3 data visualization elements scores globe Related to the global scores map that is shown on the global scores page labels Jun 23, 2021
@robyngit robyngit self-assigned this Jun 23, 2021
@robyngit
Copy link
Member Author

robyngit commented Aug 4, 2021

The trends data is available here

Related issue: #71

@Melsteroni
Copy link
Collaborator

I will update this csv to be the same as the scores csv. Two complications:

  1. "scenario" doesn't really apply because the trend collapses the data across all years. For consistency, I will keep the variable and just use the current year?
  2. "dimension": I can write something like "average_change". This doesn't really match any of the dimensions from the scores.

Let me know if you need something different from this.

@Melsteroni Melsteroni added the priority: high An issue that is of high importance or urgency label Aug 13, 2021
@Melsteroni
Copy link
Collaborator

I have updated the trends_website.csv to be more similar to the scores. Let me know if I need to make additional changes.

Attached here. And located here: https://github.com/OHI-Science/ohi-global/blob/draft/yearly_results/global2020/Results/data/trends_website.csv
trends_website.csv

@robyngit
Copy link
Member Author

Thank you!

robyngit added a commit that referenced this issue Sep 22, 2021
@robyngit
Copy link
Member Author

Here's how the map looks with the trends data. We may want to change the color scale:

Screen Shot 2021-09-22 at 17 40 38

@Melsteroni
Copy link
Collaborator

Melsteroni commented Sep 22, 2021 via email

@robyngit
Copy link
Member Author

vector of hexidecimal colors would work well, thanks!

robyngit added a commit that referenced this issue Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data viz Related to any of the D3 data visualization elements enhancement New feature or request priority: high An issue that is of high importance or urgency scores globe Related to the global scores map that is shown on the global scores page
Projects
None yet
Development

No branches or pull requests

2 participants