Skip to main content
100%

World Food Production

✓ Published0🌍 Public
Llrsavoie@wpi.edu
Last edited Apr 30, 2024
Created on Jan 24, 2024

This example visualizes world food production data from Kaggle, showing how agricultural output varies by country, food type, and year. It presents a table of parsed CSV values, with each row displaying a country-year combination and its corresponding production figures for crops like maize, rice, and wheat. The code loads the dataset using an import statement, converts string values to numbers for all food categories, and renders the first record as JSON using `JSON.stringify`. The example uses plain JavaScript to handle data parsing and displays the result in an HTML `<pre>` element with a set font size.

AI-generated description

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.

Questions: Group by country and see top foods. See how production of a country changes over time. Compare countries in the same continent and their top produced foods. Top producers of each continent in each food category.

MIT Licensed

Similar vizzes