public static StackedRankColumnModel addYear(
      RankTableModel table, String title, Function<IRow, Entry[]> year) {
    StackedRankColumnModel stacked = new StackedRankColumnModel();
    table.add(stacked);
    stacked.setTitle(title);

    stacked.add(col(year, COL_annualGiving, "Annual Giving", "#FC9272", "#FEE0D2"));
    stacked.add(col(year, COL_doctoratesAwared, "Doctorates Awared", "#9ECAE1", "#DEEBF7"));
    stacked.add(col(year, COL_endowment, "Endowment", "#A1D99B", "#E5F5E0"));
    stacked.add(col(year, COL_facultyAwards, "Faculty Awards", "#C994C7", "#E7E1EF"));
    stacked.add(col(year, COL_federalResearch, "Federal Research", "#FDBB84", "#FEE8C8"));
    stacked.add(
        col(
            year,
            COL_nationalAcademyMemberschip,
            "National Academy Membership",
            "#DFC27D",
            "#F6E8C3"));

    stacked.add(
        col(year, COL_PostdoctoralAppointees, "Postdoctoral Appointees", "#DFC27D", "#F6E8C3"));
    stacked.add(col(year, COL_SAT, "SAT", "#DFC27D", "#F6E8C3"));
    stacked.add(col(year, COL_TotalResearch, "Total Research", "#DFC27D", "#F6E8C3"));

    stacked.setWidth(400);

    return stacked;
  }