Skip to content

FridaPolished/completion_rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNICEF School Completion Rates 2019

Upper-secondary Education

Technologies, Libraries and APIs

  • JavaScript
  • CSS
  • HTML
  • D3
  • GeoJSON

Overview

Completion rates provides a data visualization for the completion rates from upper secondary education around the world.

All data from "Completion rates"(November 2019) by Unicef

Visit the live site here

Instructions

  • Select a filter to display results.
  • Check the results by hovering over the coutry you are interested.

Exploring the map:

  • Pan and zoom with your mouse scroll.
  • You can zoom in automatically with double click.

MVP

  • Format the data.
  • Render data on map.
  • Add controls to filter the data.

Features

Displays information using color coding to represent values: colored world map representing total completion rates

Displays countries specific results on hover: tooltip showing specific results for a country

Code snippets

Example of switch case to filter results by removing any previous elements and sending the new selection to render the map:

function displayMap(filter) {
  d3.selectAll("path").remove()
  d3.selectAll("circle").remove()
  d3.selectAll("text").remove()
  switch(filter){
    case 'total':
      Promise.all([
        d3.json('data.json'),
        d3.json('countries.geo.json')
      ]).then((data) => showData(data, "total"));
    break;
    ...
   }
  }

Implementation timeline

  • Day 1
    • Define data and aproach to visualization
    • Build data file in JSON format.
  • Day 2
    • Build on geoJSON file.
    • Build elements in DOM to render map.
    • Add tooltips to display general information.
  • Day 3
    • Continue building elements in DOM to render map.
    • Add new versions of the map to filter results by specific data.
    • Add color legend to explain color range.
  • Day 4
    • Add styling and introduction description paragraph on completion rates concept.
  • Day 5
    • Finishing touches and presentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published