Skip to main content
100%

Fork of #Utrecht2024 TASK: First steps in Svelte

✓ Published0🌍 Public
Kk.hurskaya@gmail.com
Last edited Jul 1, 2024
Created on Jul 1, 2024

This example demonstrates a minimal Svelte setup for processing Gapminder data. It displays the raw dataset as JSON text after converting data types with `d3.autoType`, ensuring that numeric fields like population and GDP are parsed as numbers rather than strings. The visualization uses Svelte's reactive bindings to track the container's dimensions, though the current view shows no chart or filtering. The code reads from a CSV file and outputs the structured data directly, serving as a foundation for building more complex bubble charts with the library.

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