Viewing a saved revision (read-only)
c84e47c9d95248429a8ddfd9149894a1
US Foreign Aid globally in context with Israel
This visualization pairs a choropleth world map with a scatter plot to explore U.S. foreign aid, with Israel as the baseline. Users click countries on the map to add their aid data points to the plot, enabling direct comparison of aid amounts against Israel's over time. The map’s color scale encodes total military aid since 1946, while the scatter plot plots each country’s annual aid, using `d3.geoEqualEarth` for projection, `d3.geoPath` for map rendering, and `d3.scaleThreshold` for the color bins. The interface supports adding multiple countries, and clicking an already-plotted country resets the view to Israel and that selection.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.