Skip to main content
100%

Food Production with multiple dropdowns

✓ Published1🌍 Public
Llrsavoie@wpi.edu
Last edited May 1, 2024
Created on Apr 24, 2024

This interactive visualization explores global food production trends using dropdown menus to select a crop type and a country. It employs D3.js, importing functions like `select`, `scalePoint`, and `scaleTime` to render multi-line charts, with colors assigned via an ordinal scale using `schemeSet2`. The chart displays annual production in tonnes for the chosen food item across all countries, or all food items for one country, based on data from the `@lukesavoie/worldfoodproduction` package. The interface responds to user selections by filtering and redrawing paths.

AI-generated description
MIT Licensed

Similar vizzes