Skip to main content
100%

Climate World Map Cities - Color Legend

✓ Published1🌍 Public
YYiyi Wu
Last edited Nov 7, 2024
Created on Nov 6, 2024

This interactive globe visualizes agricultural crop yields across key cities worldwide, with color-coded circles representing crop types and size indicating yield per hectare. Users can pan and zoom the orthographic projection using d3.drag and d3.zoom, while a dropdown filters data by year. An interactive color legend toggles visibility of specific crops, and hovering reveals detailed tooltips with year, region, and yield data. The visualization uses d3.geoPath with GeoJSON country outlines from the world-atlas TopoJSON source, with data derived from the Climate Change Impact on Agriculture dataset, including ChatGPT-determined agricultural cities.

AI-generated description

A globe with panning and zooming showing modified data from Climate change and Agriculture Dataset, and the Original Dataset can be found here.

One click with a certain crop types color-legend will show only the selected crop type, click on it again will show all scrop type.

The dataset was modified to have a key city with each distinct country-region pair that are known for their agriculture within the region.

The cities were determined by ChatGPT, and then the Latitude and Longitude were found based on the cities.

UPDATE:

  • Added interactive color legend
  • Modified such that the selection of crop type stays for better viewing

TODO:

  • tooltip is not disappearing if the mouse stays and zooming or dragging
  • maybe combine same crop type in the same year in the same region
MIT Licensed

Similar vizzes