Svelte Scatterplot Component with Gapminder-esque Demo

less than 1 minute read

I used Svelte (with Layercake) to build a little scatterplot component with selectable axes and toggled log-plots. This makes for an easy Gapminder-alike demo with the classic income/population/life-expectancy dataset for countries.

Here’s a little video showing the component being put through its paces. Multiple scatterplots can be selected, with pretty performant responses: