Skip to main content
100%

Fork of #Utrecht2024 TASK: First steps in Svelte

✓ Published0🌍 Public
SSebastian Graeff
Last edited Jul 1, 2024
Created on Jul 1, 2024

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 description

Task

  • 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

Interactive version

Data

Gapminder

MIT Licensed

Similar vizzes