Fork of Fork of Food Production Stacked Bar Chart
This stacked bar chart visualizes estimated food production by continent for 2021, using data from a Kaggle world food production dataset. Each horizontal bar is segmented by food type, and a color legend allows interactive highlighting that fades non-matching segments and adds a stroke to the selected category. The visualization uses D3’s `scaleBand`, `scaleLinear`, `stack`, and `flatRollup` to transform and render the data, with responsive axes from the `@curran/responsive-axes` library and custom color legend interactivity.
AI-generated descriptionStacked bars showing estimated food production breakdown of the continents. Based on an example from the tutorial
https://www.kaggle.com/datasets/rafsunahmad/world-food-production
https://raw.githubusercontent.com/lukesavoie/dataviz/main/world%20food%20production.csv loaded and parsed as CSV.