Food Production with multiple dropdowns
✓ Published1🌍 Public
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 descriptionMIT Licensed