---
title: "Gapminder: families and longer lives"
styles: [air]
---

```chart
{
  "axes": {
    "x": {
      "label": "Babies per woman"
    },
    "y": {
      "label": "Life expectancy",
      "unit": "years"
    }
  },
  "controls": [
    {
      "field": "year",
      "id": "year",
      "initial": "2020",
      "kind": "playback",
      "label": "Year",
      "loop": true,
      "speed": 1000
    }
  ],
  "data": {
    "csv": "data.csv"
  },
  "encoding": {
    "color": "region",
    "label": "country",
    "size": "population",
    "x": "babies_per_woman",
    "y": "life_expectancy"
  },
  "style": {
    "ratio": "4:3"
  },
  "subtitle": "Country observations every five years; bubble area represents population",
  "title": "Explore how countries moved over six decades",
  "type": "scatter"
}
```
