Plot stacked Area chart with two categories columns

The issue in this chart is that the dataset has two series (for females and males), so it’s not expressable as a simple stacked area chart. You need to:

  • add M and F together for a total population analysis, or
  • filter on M or F (`filter: d => d.sex === “female”`), or
  • facet by sex (`fx: “sex”`)

The last option gives you this: