Skip to main content
100%

GDP Choropleth Viz final

✓ Published2🌍 Public
TTom Heffernan
Last edited May 14, 2024
Created on May 13, 2024
Forked from GDP Choropleth Viz

This interactive visualization presents a global choropleth map where each country’s color encodes its GDP per capita, with a slider to shift the year between 1970 and 2033. Hovering highlights a country in pink, while selecting it turns it red and displays a line plot of that nation’s GDP over time, split into blue (pre-2023) and red (post-2023) segments. The map uses `d3.geoPath` for country shapes and a quantile-based color scale, while the line plot relies on `d3.axisBottom` and `d3.axisLeft` for axes. Data is sourced from a GDP dataset, with country name mappings to reconcile discrepancies.

AI-generated description

The color of each country on the map shows its GDP per capita. You can move the slider to change the year shown on the map. You can hover over a country to show its GDP over time on the plot. The red line on the plot shows the current year on the slider

Goals of viz:

  • Be able to compare the GDP of countries at a given year
  • Be able to see how one country's GDP changes over time
  • Get an idea of how global gdps change over time by playing with slider
MIT Licensed

Similar vizzes