Version_2_SP
This visualization compares the GDP variation of the USA and Germany after World War II, using a scatterplot where the x-axis maps the year and the y-axis reports GDP in percent. The dataset originates from the IMF Website. An interactive color legend, built with `d3.scaleOrdinal` and `d3.schemeSet2`, allows users to click on a country to highlight its data points while dimming others. The chart is rendered as an SVG using `d3.axisBottom` and `d3.axisLeft` for the axes, with circles positioned via `d3.scaleLinear`.
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 function ordering (scatterplot.js) used from Nick Lima's visualization.