Viewing a saved revision (read-only)
5e4d39cf961947eaa6bf2c4b2a98558d
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.