Fork of #Utrecht2024 TASK: First steps in Svelte
✓ Published0🌍 Public
This example demonstrates the initial step of a data preparation task using the Gapminder dataset, displaying the raw CSV data as JSON in the browser. The code loads the data with an import statement and applies the `autoType` function from the `d3` library to convert string values into their appropriate data types, such as numbers. It does not yet perform the required filtering for the year 2022 or compute the minimum and maximum values for GDP and life expectancy, as those instructions remain in the README. The Svelte framework renders the parsed data in a formatted `<main>` element.
AI-generated descriptionTask
- format the data: numbers should be numbers – not strings
- filter and only use data of the year 2022
- determine the min and max value of GDP and life expectancy
Original visualization
Data
MIT Licensed