GDP changes: Post World War II
This visualization uses a scatterplot to show GDP changes for the USA and Germany after World War II, with the y-axis reporting GDP in percent and the x-axis showing the year. A categorical color scale distinguishes the two countries, and an interactive color legend filters the data by country on click. The code loads data from the IMF via D3’s `csv` function and builds the chart using `scaleLinear`, `axisLeft`, `axisBottom`, and `scaleOrdinal` with `schemeSet2`. The update pattern follows Nick Lima’s approach for handling selections and transitions in SVG.
AI-generated descriptionThis visualization shows the changes in GDP after World War II for US and Germany. The y-axis reports the GDP (in percent) and the x-axis reports the year. The dataset comes from the IMF Website.
Data loading concept (index.js) and update pattern ordering (scatterplot.js) used from Nick Lima's visualization.
Comments
Sign in to join the discussion.