GDP Choropleth Viz
A world map colored by GDP per capita displays each country’s economic standing for a selected year, controlled by a slider. Hovering over a country updates a line plot showing that nation’s GDP trend over time, with red and green reference lines marking the current year’s value. The visualization combines a `d3.geoEqualEarth` projection rendered as SVG with `d3.scaleLinear` color encoding, alongside a linked line chart built using `d3.line` and axis components. GDP data originates from a CSV file, while country boundaries use a GeoJSON source.
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