Skip to content
Field Guide
Coming soon. This video isn't public yet. Everything it says is in the transcript below.

An animated chart, in Flourish

Women in parliament since 2000, as a bar chart race.

2:13 Captions in the video Python Flourish Recorded 16 October 2026

Lesson 2 of 5 · Present it in the tools you use Next: A one-slide briefing, in PowerPoint

Try it yourself

  • Python, after import undata as un
    table = un.get("undata/sdg/SG_GEN_PARL.SEX--F", "World", years=(2000, 2026))
    flourish = table.pivot(index="country", columns="year", values="value")
    flourish.insert(0, "region", un.countries().set_index("country").region)
    flourish.to_csv("women-in-parliament.csv")
    print(un.cite(table))
  • Flourish's bar chart race template

Remember: A blank cell stays blank. A year with no data must never become zero.

Transcript

  1. 0:00 Some stories are about change over time, and they land best in motion. Here is how to turn official UN data into an animated chart in Flourish, without writing any code for the chart itself.
  2. 0:13 This is the product: the share of seats held by women in national parliaments, country by country, from 2000 to 2026. One table made it.
  3. 0:23 First, the data. un.get with World fetches every country, from 2000 to 2026. Flourish wants one row per country and one column per year, and pandas’ pivot does exactly that. Add each country’s region, to colour the bars, and save a CSV. The last line prints the citation, for the chart’s footer.
  4. 0:44 Here is the file: 193 countries. A label column, a category column, and one value column per year, 27 of them. Get the shape right, and the template does the rest. Where a country did not report, the cell is empty, not zero.
  5. 1:00 In Flourish, start a new visualisation and choose the bar chart race template. On the Data tab, upload the CSV. Set the label to column A, the categories to column B, and the values to columns C to AC. In the footer settings, paste the citation as the source. Then preview it, and publish or download it.
  6. 1:21 In 2000, Sweden led, with 43 percent of seats held by women, and only one country had reached forty. Now watch Rwanda, in orange, as the years run forward. In 2009, it became the first country where women held more than half the seats. Others followed, year after year, from Latin America, Africa and Europe. By 2026, 30 countries are at forty percent or more, and the world average has doubled, from 13 percent to 27.
  7. 1:52 One caution. Publishing from Flourish puts the chart on the public web, so follow your office’s rules for public content. Keep the source in the footer, and for print, download it as an image.
  8. 2:03 One table, the right shape, and the chart moves on its own. Next: a one-slide briefing, in PowerPoint.

Go deeper

↑ ↓ to move · Enter to open · A match inside a video opens the lesson at the moment the words are said.