Economic factors over time plot with Menus
This scatter plot displays economic factors for the United States from 1800 to 2011, using data from the IMF. Two dropdown menus let users select which variables to plot on the x- and y-axes, with axes and labels updating dynamically. Built with d3.v5, it uses SVG rendering and d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom to draw the points, grid lines, and animated transitions. The circles represent individual years, and the chart supports interactive exploration of relationships between revenue, expenditure, GDP, and debt.