Sara Maria - Fork 2 of #Utrecht2024 TASK: First steps in Svelte
✓ Published0🌍 Public
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 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