Fork of GDP Choropleth Viz
This interactive visualization combines a choropleth map of global GDP per capita with a time-series line plot. A slider allows the user to change the displayed year, updating the map’s color scale and the position of a red vertical line on the line plot. Hovering over a country highlights it in red and updates the line plot to show that country’s GDP trajectory from 1995 to 2023. The map is rendered using `d3.geoPath` with a `geoEqualEarth` projection and a graticule, while the line plot is built with `d3.line`, axes, and scales. GDP data is mapped to a linear color scale from white to blue.
AI-generated descriptionThe 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