Skip to main content
100%

GDP Choropleth Viz failed log scale

✓ Published0🌍 Public
TTom Heffernan
Last edited May 14, 2024
Created on May 14, 2024

A choropleth map colors countries by GDP per capita for a selected year, with a slider to scrub through time from 1970 to 2033. Hovering highlights a country in pink, and clicking pins it in red while a line plot beside the map shows that country’s GDP trajectory, split into blue (historical) and red (projected) segments past 2023. A toggle switches the map and plot between linear and logarithmic color/value scales. Built with D3 v6, the visualization uses `d3.geoPath` for map rendering and `d3.scaleLinear`/`d3.scaleLog` for the scales, with country data loaded from external files.

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