Fork of #Utrecht2024 TASK: First steps in Sveltenew
✓ Published1🌍 Public
This example shows a scatterplot of countries, with each country represented by a circle whose position is determined by GDP per capita on the x-axis and life expectancy on the y-axis, and whose size reflects population. The circles are colored by continent, and the data is sourced from Gapminder. The visualization maps data using `d3.scaleLinear` for the axes, `d3.scaleSqrt` for the radius, and `d3.scaleOrdinal` for the categorical color scale. It renders circles as SVG elements, with the entire plot dynamically generated in the Svelte component.
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