Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Meta-issue for democracy gradient map #3

Open
11 of 16 tasks
Crista2019 opened this issue Jan 22, 2020 · 3 comments
Open
11 of 16 tasks

Meta-issue for democracy gradient map #3

Crista2019 opened this issue Jan 22, 2020 · 3 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@Crista2019
Copy link

Crista2019 commented Jan 22, 2020

The purpose of the democracy gradient map is to show the evolution of democracy in Africa from the years 1981 - 2018. We want the users to understand how different countries increased or decreased in democracy score over time. We also want the users to understand what the different democracy indices mean and how they are calculated. In the final product, we want to provide an aesthetically pleasing visualization that is both informative and intuitive.

unnamed

@ryaanahmed
Copy link
Member

great! re: color -- check out:
https://github.com/d3/d3-scale (the full API reference)
https://www.d3indepth.com/scales/ (a much nicer rundown of how this works)

The really cool thing about D3 scales is that you can specify, e.g., colors as the output range. From the d3 in depth thing linked --

var linearScale = d3.scaleLinear()
  .domain([0, 10])
  .range(['yellow', 'red']);

linearScale(0);   // returns "rgb(255, 255, 0)"
linearScale(5);   // returns "rgb(255, 128, 0)"
linearScale(10);  // returns "rgb(255, 0, 0)"

@Crista2019
Copy link
Author

Another thing to think about once the parts of the heatmap are all working would be to put the elements of the viz (map, scrollbar, dropdown) into something like a bootstrap layout.

  • organize frontend with bootstrap

@ryaanahmed
Copy link
Member

@Mayowa99 -- you mentioned that you had code for the gradient key that didn't get merged at some point. Can you find and let me know the name of the branch, so I can revive that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants