Skip to main content
100%

Sara Maria - Fork 2 of #Utrecht2024 TASK: First steps in Svelte

✓ Published0🌍 Public
Ssam.jumphouses@gmail.com
Last edited Jul 2, 2024
Created on Jul 1, 2024

This scatterplot shows the relationship between GDP per capita and life expectancy across countries, with bubble size encoding population and color distinguishing continents. It renders each country as a circle positioned by linear x and y scales, while a square-root scale maps population to radius and an ordinal scale assigns continent colors. Built with Svelte and D3, the visualization imports CSV data, converts string values with `autoType`, and renders SVG circles through a reusable `Datapoint` component featuring radial gradient definitions.

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