- JavaScript
- CSS
- HTML
- D3
- GeoJSON
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
- Select a filter to display results.
- Check the results by hovering over the coutry you are interested.
- Pan and zoom with your mouse scroll.
- You can zoom in automatically with double click.
- Format the data.
- Render data on map.
- Add controls to filter the data.
Displays information using color coding to represent values:
Displays countries specific results on hover:
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;
...
}
}
- 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