Historical Population Pyramid

A population pyramid tied to a timeline: hover a year in the U.S. population chart and the pyramid redraws its age groups for that year, from 1950 to the UN projection for 2100.

  • Try it:
  • Hover the timeline to change the year
  • Hover a bar
Get the code JavaScript
About this chart

Why link a pyramid to a timeline

A single pyramid is a snapshot; moving through the years shows how a population ages. Here the baby boom of the 1950s climbs the pyramid decade by decade, and the oldest group swells late in the century. The totals chart says how many, the pyramid says who.

Good for

  • How a population ages over decades
  • Projections next to the history behind them
  • Any breakdown that changes year by year

Think twice when

  • Printed reports: show a few chosen years side by side
  • Few years of data: two pyramids compare better
  • Exact numbers: a table of age groups
For developers

Get the code.

Built with amCharts 5, a JavaScript library. The code includes your theme and renderer (canvas or SVG), but not the changes you make with the controls.

// ==========================================
// Data
// ==========================================

// U.S. population by sex and five-year age group, in thousands, from 1950 to 2100. Source: United Nations,
// World Population Prospects (estimates, then the medium-variant projection)
var ageGroups = ["0-4", "5-9", "10-14", "15-19", "20-24", "25-29", "30-34", "35-39", "40-44", "45-49", "50-54", "55-59", "60-64", "65-69", "70-74", "75-79", "80+"];

var populationData = [
  { year: 1950, male: [8812, 7044, 5890, 5668, 6105, 6407, 6045, 5751, 5328, 4728, 4287, 3782, 3304, 2613, 1673, 1023, 774], female: [8425, 6741, 5684, 5549, 6145, 6465, 6099, 5812, 5354, 4755, 4349, 3853, 3381, 2872, 1868, 1193, 1026] },
  { year: 1951, male: [9075, 7365, 6011, 5562, 5982, 6387, 6108, 5792, 5345, 4850, 4311, 3818, 3320, 2638, 1739, 1056, 819], female: [8685, 7040, 5816, 5493, 6010, 6447, 6164, 5858, 5393, 4886, 4399, 3920, 3424, 2908, 1964, 1244, 1075] },
  { year: 1952, male: [9252, 7728, 6214, 5509, 5839, 6354, 6202, 5846, 5387, 4950, 4391, 3852, 3359, 2668, 1806, 1087, 860], female: [8859, 7378, 6003, 5483, 5877, 6407, 6259, 5909, 5449, 4997, 4492, 3984, 3493, 2939, 2074, 1287, 1129] },
  { year: 1953, male: [9424, 8105, 6482, 5517, 5669, 6304, 6300, 5900, 5465, 4992, 4539, 3869, 3414, 2711, 1862, 1120, 894], female: [9028, 7734, 6237, 5511, 5751, 6339, 6359, 5955, 5536, 5053, 4638, 4034, 3577, 2980, 2179, 1330, 1183] },
  { year: 1954, male: [9623, 8471, 6797, 5588, 5493, 6229, 6375, 5960, 5570, 4986, 4720, 3886, 3477, 2768, 1902, 1157, 917], female: [9221, 8085, 6508, 5575, 5644, 6246, 6435, 6007, 5640, 5064, 4811, 4082, 3664, 3042, 2265, 1385, 1231] },
  { year: 1955, male: [9847, 8799, 7145, 5722, 5346, 6119, 6414, 6035, 5677, 4981, 4881, 3938, 3534, 2838, 1937, 1196, 929], female: [9436, 8405, 6809, 5681, 5568, 6138, 6470, 6076, 5742, 5073, 4964, 4155, 3743, 3127, 2336, 1452, 1273] },
  { year: 1956, male: [9989, 9098, 7460, 5932, 5384, 5997, 6423, 6111, 5759, 5087, 4904, 4036, 3521, 2868, 2001, 1227, 985], female: [9569, 8704, 7118, 5854, 5541, 6039, 6472, 6161, 5829, 5208, 5022, 4280, 3773, 3169, 2414, 1521, 1348] },
  { year: 1957, male: [10180, 9347, 7793, 6159, 5450, 5873, 6399, 6200, 5806, 5227, 4893, 4177, 3497, 2896, 2058, 1263, 1026], female: [9754, 8950, 7447, 6051, 5545, 5926, 6437, 6258, 5879, 5365, 5052, 4437, 3800, 3217, 2475, 1605, 1410] },
  { year: 1958, male: [10372, 9541, 8149, 6405, 5528, 5777, 6343, 6291, 5840, 5368, 4888, 4329, 3482, 2928, 2100, 1306, 1050], female: [9943, 9142, 7796, 6267, 5589, 5812, 6374, 6356, 5915, 5511, 5090, 4599, 3839, 3274, 2521, 1698, 1463] },
  { year: 1959, male: [10516, 9697, 8508, 6674, 5617, 5729, 6267, 6366, 5885, 5484, 4927, 4457, 3503, 2959, 2129, 1355, 1059], female: [10087, 9297, 8141, 6506, 5672, 5717, 6294, 6431, 5962, 5624, 5164, 4740, 3908, 3339, 2560, 1789, 1515] },
  { year: 1960, male: [10587, 9847, 8838, 6970, 5728, 5721, 6190, 6410, 5952, 5567, 5015, 4550, 3571, 2987, 2155, 1401, 1057], female: [10155, 9446, 8453, 6773, 5788, 5655, 6206, 6470, 6030, 5700, 5274, 4853, 4013, 3407, 2605, 1868, 1569] },
  { year: 1961, male: [10692, 10022, 9112, 7321, 5914, 5688, 6099, 6410, 6026, 5611, 5069, 4581, 3640, 2985, 2202, 1425, 1123], female: [10244, 9614, 8726, 7122, 5935, 5619, 6093, 6470, 6112, 5736, 5340, 4910, 4102, 3459, 2670, 1908, 1675] },
  { year: 1962, male: [10654, 10211, 9346, 7705, 6138, 5689, 6014, 6382, 6123, 5649, 5143, 4604, 3739, 2973, 2253, 1449, 1174], female: [10205, 9789, 8954, 7501, 6127, 5622, 5972, 6438, 6214, 5771, 5408, 4965, 4211, 3501, 2753, 1943, 1775] },
  { year: 1963, male: [10505, 10403, 9548, 8103, 6386, 5732, 5939, 6329, 6225, 5691, 5220, 4635, 3845, 2968, 2297, 1481, 1205], female: [10066, 9963, 9145, 7881, 6368, 5662, 5855, 6378, 6318, 5815, 5463, 5031, 4323, 3544, 2842, 1986, 1862] },
  { year: 1964, male: [10302, 10566, 9740, 8477, 6651, 5818, 5881, 6260, 6304, 5745, 5286, 4687, 3935, 2988, 2325, 1521, 1213], female: [9877, 10114, 9322, 8225, 6653, 5740, 5758, 6295, 6396, 5877, 5501, 5111, 4423, 3600, 2925, 2044, 1932] },
  { year: 1965, male: [10092, 10659, 9938, 8803, 6938, 5941, 5843, 6183, 6342, 5815, 5340, 4757, 4006, 3036, 2338, 1562, 1201], female: [9681, 10205, 9503, 8520, 6968, 5858, 5691, 6197, 6433, 5955, 5533, 5192, 4513, 3674, 2999, 2118, 1986] },
  { year: 1966, male: [9851, 10707, 10144, 9001, 7292, 6101, 5808, 6111, 6353, 5898, 5378, 4781, 4070, 3083, 2340, 1590, 1280], female: [9436, 10246, 9699, 8792, 7278, 6027, 5662, 6095, 6436, 6040, 5580, 5216, 4613, 3750, 3035, 2177, 2107] },
  { year: 1967, male: [9611, 10692, 10347, 9178, 7617, 6308, 5803, 6023, 6331, 5997, 5417, 4812, 4114, 3158, 2330, 1612, 1341], female: [9203, 10223, 9886, 9018, 7613, 6225, 5670, 5981, 6406, 6137, 5631, 5236, 4696, 3853, 3063, 2240, 2212] },
  { year: 1968, male: [9389, 10619, 10525, 9382, 7875, 6560, 5841, 5926, 6284, 6097, 5461, 4856, 4139, 3254, 2316, 1630, 1381], female: [8991, 10140, 10054, 9208, 7962, 6447, 5717, 5867, 6347, 6234, 5682, 5266, 4755, 3975, 3094, 2303, 2304] },
  { year: 1969, male: [9191, 10506, 10661, 9630, 8070, 6837, 5931, 5838, 6224, 6179, 5520, 4912, 4158, 3352, 2318, 1642, 1397], female: [8798, 10016, 10184, 9386, 8300, 6694, 5804, 5771, 6269, 6309, 5740, 5312, 4794, 4102, 3145, 2362, 2383] },
  { year: 1970, male: [9007, 10379, 10752, 9898, 8247, 7105, 6073, 5780, 6154, 6230, 5601, 4977, 4187, 3435, 2349, 1646, 1389], female: [8617, 9878, 10260, 9567, 8605, 6970, 5926, 5710, 6181, 6350, 5811, 5369, 4829, 4214, 3224, 2416, 2452] },
  { year: 1971, male: [8734, 10191, 10787, 10158, 8652, 7369, 6225, 5772, 6058, 6225, 5670, 5017, 4234, 3462, 2408, 1655, 1471], female: [8375, 9711, 10304, 9775, 8886, 7319, 6078, 5680, 6074, 6350, 5894, 5399, 4901, 4259, 3307, 2471, 2591] },
  { year: 1972, male: [8588, 9945, 10774, 10367, 9048, 7659, 6423, 5788, 5961, 6192, 5755, 5051, 4293, 3480, 2480, 1651, 1537], female: [8236, 9493, 10292, 9975, 9118, 7692, 6274, 5683, 5954, 6316, 5991, 5428, 4962, 4313, 3391, 2520, 2723] },
  { year: 1973, male: [8526, 9653, 10720, 10542, 9400, 7993, 6664, 5829, 5876, 6141, 5843, 5092, 4354, 3507, 2550, 1648, 1582], female: [8167, 9236, 10235, 10155, 9321, 8066, 6521, 5722, 5837, 6257, 6085, 5471, 5001, 4395, 3466, 2568, 2847] },
  { year: 1974, male: [8494, 9346, 10624, 10683, 9693, 8368, 6941, 5902, 5819, 6081, 5915, 5150, 4414, 3556, 2607, 1658, 1603], female: [8125, 8969, 10138, 10297, 9524, 8417, 6817, 5803, 5745, 6183, 6159, 5538, 5025, 4501, 3534, 2626, 2964] },
  { year: 1975, male: [8461, 9069, 10475, 10784, 9941, 8759, 7252, 6019, 5790, 6020, 5961, 5228, 4474, 3623, 2654, 1684, 1596], female: [8079, 8731, 10000, 10391, 9737, 8736, 7151, 5934, 5689, 6102, 6201, 5627, 5053, 4610, 3609, 2692, 3071] },
  { year: 1976, male: [8553, 8946, 10356, 10863, 10160, 9043, 7464, 6159, 5702, 5895, 5939, 5297, 4557, 3667, 2753, 1712, 1661], female: [8102, 8540, 9822, 10447, 9940, 9033, 7470, 6112, 5665, 6013, 6221, 5721, 5116, 4643, 3727, 2721, 3220] },
  { year: 1977, male: [8573, 8862, 10208, 10934, 10381, 9313, 7731, 6312, 5670, 5755, 5891, 5374, 4632, 3737, 2828, 1785, 1690], female: [8082, 8397, 9610, 10466, 10151, 9294, 7831, 6329, 5683, 5915, 6218, 5832, 5195, 4671, 3853, 2783, 3339] },
  { year: 1978, male: [8547, 8811, 10039, 10993, 10593, 9555, 8068, 6454, 5708, 5606, 5823, 5450, 4691, 3845, 2866, 1907, 1684], female: [8039, 8300, 9376, 10438, 10356, 9519, 8225, 6577, 5746, 5820, 6192, 5951, 5277, 4718, 3961, 2886, 3429] },
  { year: 1979, male: [8530, 8770, 9871, 11024, 10782, 9781, 8446, 6598, 5800, 5473, 5737, 5503, 4741, 3978, 2886, 2050, 1659], female: [8015, 8231, 9142, 10357, 10527, 9726, 8617, 6852, 5850, 5742, 6144, 6053, 5360, 4789, 4045, 3020, 3501] },
  { year: 1980, male: [8565, 8707, 9725, 11014, 10945, 10009, 8816, 6784, 5912, 5381, 5632, 5522, 4796, 4106, 2924, 2175, 1635], female: [8044, 8160, 8932, 10221, 10640, 9931, 8973, 7160, 5989, 5694, 6078, 6121, 5450, 4877, 4114, 3161, 3571] },
  { year: 1981, male: [8676, 8642, 9523, 10848, 11078, 10264, 9126, 7133, 6037, 5401, 5536, 5520, 4852, 4133, 2986, 2192, 1755], female: [8133, 8129, 8775, 10052, 10695, 10159, 9248, 7518, 6152, 5675, 5981, 6125, 5547, 4905, 4170, 3234, 3740] },
  { year: 1982, male: [8775, 8617, 9353, 10634, 11167, 10524, 9397, 7545, 6166, 5478, 5431, 5501, 4930, 4148, 3078, 2171, 1875], female: [8250, 8113, 8648, 9840, 10696, 10382, 9481, 7902, 6352, 5689, 5874, 6099, 5654, 4943, 4220, 3301, 3900] },
  { year: 1983, male: [8876, 8627, 9205, 10401, 11194, 10767, 9653, 7979, 6322, 5594, 5336, 5468, 5011, 4171, 3175, 2145, 1976], female: [8393, 8112, 8547, 9607, 10647, 10576, 9696, 8283, 6595, 5737, 5769, 6053, 5749, 5005, 4259, 3371, 4047] },
  { year: 1984, male: [8985, 8662, 9077, 10178, 11151, 10971, 9918, 8386, 6535, 5723, 5276, 5420, 5072, 4219, 3257, 2146, 2038], female: [8545, 8128, 8464, 9385, 10555, 10720, 9921, 8636, 6881, 5821, 5684, 5993, 5812, 5093, 4295, 3447, 4180] },
  { year: 1985, male: [9109, 8702, 8973, 9977, 11043, 11120, 10195, 8747, 6813, 5855, 5263, 5362, 5107, 4293, 3320, 2183, 2057], female: [8698, 8164, 8393, 9192, 10424, 10808, 10156, 8956, 7199, 5947, 5634, 5925, 5844, 5198, 4343, 3524, 4303] },
  { year: 1986, male: [9275, 8775, 8911, 9774, 10879, 11202, 10424, 9104, 7128, 5981, 5277, 5277, 5104, 4334, 3377, 2231, 2161], female: [8898, 8269, 8367, 9033, 10230, 10863, 10347, 9273, 7523, 6112, 5602, 5832, 5857, 5252, 4393, 3547, 4486] },
  { year: 1987, male: [9433, 8867, 8881, 9594, 10679, 11228, 10643, 9411, 7515, 6104, 5344, 5180, 5090, 4387, 3420, 2299, 2231], female: [9059, 8397, 8369, 8918, 10010, 10861, 10546, 9545, 7893, 6312, 5611, 5727, 5854, 5324, 4453, 3572, 4647] },
  { year: 1988, male: [9585, 8977, 8875, 9444, 10463, 11193, 10852, 9668, 7952, 6241, 5453, 5087, 5066, 4448, 3454, 2380, 2273], female: [9189, 8540, 8395, 8837, 9791, 10790, 10750, 9767, 8297, 6540, 5665, 5622, 5828, 5411, 4512, 3609, 4786] },
  { year: 1989, male: [9728, 9100, 8890, 9328, 10257, 11103, 11031, 9899, 8391, 6428, 5581, 5025, 5029, 4506, 3492, 2460, 2296], female: [9304, 8685, 8443, 8779, 9597, 10657, 10927, 9964, 8698, 6799, 5760, 5537, 5777, 5497, 4574, 3665, 4901] },
  { year: 1990, male: [9861, 9229, 8926, 9246, 10072, 10976, 11161, 10132, 8792, 6693, 5712, 5013, 4984, 4553, 3544, 2531, 2308], female: [9416, 8815, 8511, 8739, 9435, 10487, 11042, 10165, 9062, 7099, 5889, 5485, 5708, 5563, 4648, 3733, 5001] },
  { year: 1991, male: [10002, 9411, 9033, 9153, 9875, 10891, 11244, 10362, 9077, 7018, 5820, 5034, 4905, 4550, 3601, 2562, 2426], female: [9553, 8995, 8615, 8700, 9293, 10367, 11070, 10380, 9319, 7450, 6037, 5461, 5610, 5542, 4716, 3739, 5162] },
  { year: 1992, male: [10106, 9587, 9174, 9121, 9685, 10754, 11303, 10606, 9321, 7401, 5935, 5106, 4820, 4541, 3668, 2588, 2524], female: [9655, 9164, 8748, 8693, 9168, 10217, 11054, 10608, 9527, 7829, 6221, 5474, 5506, 5507, 4796, 3758, 5289] },
  { year: 1993, male: [10175, 9751, 9332, 9157, 9519, 10564, 11348, 10846, 9551, 7806, 6081, 5214, 4746, 4531, 3734, 2626, 2596], female: [9724, 9315, 8903, 8724, 9068, 10036, 11016, 10824, 9719, 8208, 6449, 5525, 5406, 5468, 4870, 3805, 5384] },
  { year: 1994, male: [10211, 9899, 9501, 9254, 9395, 10343, 11373, 11064, 9799, 8190, 6289, 5337, 4707, 4519, 3791, 2684, 2640], female: [9762, 9447, 9071, 8799, 8998, 9846, 10969, 11002, 9931, 8557, 6726, 5615, 5329, 5430, 4923, 3882, 5458] },
  { year: 1995, male: [10230, 10024, 9674, 9394, 9326, 10124, 11357, 11255, 10077, 8538, 6566, 5469, 4716, 4503, 3837, 2760, 2659], female: [9779, 9556, 9243, 8913, 8962, 9673, 10906, 11138, 10174, 8871, 7044, 5748, 5291, 5390, 4960, 3980, 5523] },
  { year: 1996, male: [10271, 10194, 9856, 9510, 9358, 9982, 11214, 11372, 10342, 8897, 6877, 5605, 4748, 4444, 3857, 2817, 2786], female: [9828, 9718, 9408, 9039, 9008, 9555, 10755, 11209, 10413, 9199, 7378, 5918, 5279, 5300, 4974, 4042, 5652] },
  { year: 1997, male: [10221, 10361, 10056, 9656, 9430, 9887, 11041, 11468, 10608, 9226, 7266, 5748, 4837, 4384, 3877, 2879, 2894], female: [9784, 9880, 9588, 9192, 9080, 9499, 10582, 11253, 10659, 9495, 7764, 6128, 5315, 5211, 4983, 4116, 5770] },
  { year: 1998, male: [10128, 10511, 10257, 9833, 9523, 9830, 10858, 11528, 10859, 9521, 7711, 5908, 4965, 4337, 3890, 2944, 2981], female: [9692, 10025, 9775, 9365, 9164, 9491, 10403, 11262, 10892, 9757, 8184, 6371, 5394, 5135, 4977, 4197, 5877] },
  { year: 1999, male: [10049, 10623, 10445, 10030, 9621, 9794, 10688, 11532, 11072, 9791, 8157, 6111, 5108, 4322, 3891, 3005, 3044], female: [9612, 10134, 9957, 9544, 9250, 9507, 10239, 11227, 11081, 9998, 8598, 6646, 5506, 5088, 4951, 4272, 5971] },
  { year: 2000, male: [10013, 10681, 10612, 10230, 9723, 9772, 10541, 11476, 11232, 10048, 8561, 6377, 5248, 4349, 3879, 3056, 3086], female: [9576, 10186, 10123, 9718, 9341, 9526, 10107, 11142, 11209, 10227, 8970, 6957, 5646, 5074, 4908, 4331, 6058] },
  { year: 2001, male: [9905, 10697, 10778, 10420, 9828, 9740, 10378, 11368, 11367, 10305, 8902, 6716, 5380, 4403, 3855, 3075, 3242], female: [9478, 10198, 10262, 9898, 9465, 9528, 9999, 11017, 11307, 10465, 9289, 7318, 5811, 5077, 4848, 4314, 6219] },
  { year: 2002, male: [9953, 10619, 10913, 10596, 9961, 9713, 10223, 11192, 11449, 10542, 9178, 7115, 5503, 4494, 3821, 3090, 3365], female: [9524, 10127, 10375, 10058, 9601, 9530, 9915, 10836, 11346, 10689, 9543, 7714, 6000, 5108, 4782, 4292, 6340] },
  { year: 2003, male: [10098, 10461, 11015, 10762, 10129, 9694, 10087, 10977, 11479, 10757, 9412, 7546, 5640, 4614, 3793, 3106, 3455], female: [9660, 9983, 10465, 10201, 9749, 9545, 9857, 10630, 11334, 10891, 9754, 8126, 6218, 5174, 4720, 4274, 6423] },
  { year: 2004, male: [10252, 10271, 11069, 10926, 10326, 9704, 9980, 10766, 11459, 10945, 9640, 7963, 5832, 4748, 3793, 3125, 3514], female: [9804, 9809, 10519, 10337, 9906, 9590, 9818, 10445, 11281, 11058, 9960, 8520, 6481, 5276, 4682, 4265, 6477] },
  { year: 2005, male: [10364, 10115, 11055, 11088, 10540, 9761, 9897, 10583, 11394, 11099, 9882, 8339, 6101, 4888, 3835, 3145, 3546], female: [9910, 9666, 10514, 10469, 10068, 9672, 9797, 10302, 11195, 11185, 10181, 8875, 6794, 5416, 4681, 4261, 6512] },
  { year: 2006, male: [10630, 10110, 10971, 11145, 10666, 9884, 9823, 10406, 11272, 11213, 10104, 8643, 6413, 4994, 3881, 3139, 3703], female: [10160, 9666, 10442, 10550, 10193, 9759, 9774, 10165, 11052, 11268, 10395, 9165, 7133, 5555, 4673, 4222, 6659] },
  { year: 2007, male: [10746, 10181, 10869, 11220, 10779, 10042, 9789, 10260, 11112, 11302, 10341, 8907, 6799, 5106, 3969, 3123, 3844], female: [10271, 9736, 10348, 10640, 10315, 9877, 9775, 10079, 10877, 11317, 10625, 9416, 7525, 5734, 4703, 4175, 6793] },
  { year: 2008, male: [10747, 10312, 10763, 11299, 10886, 10207, 9800, 10140, 10930, 11353, 10580, 9143, 7223, 5247, 4085, 3110, 3962], female: [10272, 9861, 10253, 10723, 10426, 10014, 9798, 10033, 10688, 11321, 10852, 9642, 7939, 5956, 4771, 4127, 6911] },
  { year: 2009, male: [10693, 10456, 10684, 11354, 10989, 10354, 9852, 10042, 10745, 11350, 10794, 9375, 7631, 5445, 4213, 3119, 4050], female: [10221, 9997, 10185, 10773, 10526, 10151, 9842, 10008, 10511, 11274, 11044, 9864, 8332, 6225, 4875, 4096, 7005] },
  { year: 2010, male: [10637, 10548, 10659, 11371, 11092, 10477, 9933, 9967, 10573, 11292, 10966, 9619, 7991, 5713, 4345, 3162, 4102], female: [10165, 10081, 10169, 10779, 10616, 10274, 9907, 9990, 10363, 11178, 11181, 10095, 8679, 6540, 5012, 4095, 7068] },
  { year: 2011, male: [10602, 10572, 10613, 11354, 11268, 10661, 10037, 9921, 10412, 11175, 11059, 9830, 8269, 6002, 4454, 3218, 4231], female: [10135, 10107, 10144, 10786, 10766, 10416, 9992, 9969, 10245, 11034, 11237, 10297, 8956, 6859, 5156, 4099, 7172] },
  { year: 2012, male: [10485, 10604, 10594, 11267, 11446, 10852, 10176, 9909, 10274, 11021, 11122, 10050, 8505, 6353, 4565, 3306, 4327], female: [10024, 10139, 10135, 10730, 10924, 10560, 10108, 9961, 10166, 10859, 11253, 10504, 9189, 7221, 5330, 4138, 7238] },
  { year: 2013, male: [10334, 10643, 10590, 11132, 11603, 11046, 10341, 9929, 10161, 10845, 11150, 10265, 8711, 6734, 4695, 3417, 4400], female: [9880, 10176, 10133, 10628, 11071, 10706, 10246, 9969, 10118, 10669, 11227, 10698, 9393, 7601, 5538, 4209, 7278] },
  { year: 2014, male: [10209, 10676, 10588, 10992, 11708, 11239, 10521, 9982, 10071, 10669, 11137, 10452, 8916, 7098, 4873, 3535, 4460], female: [9760, 10208, 10129, 10517, 11174, 10856, 10395, 10003, 10085, 10492, 11162, 10856, 9590, 7963, 5785, 4311, 7305] },
  { year: 2015, male: [10149, 10687, 10587, 10876, 11739, 11427, 10710, 10065, 10007, 10506, 11080, 10600, 9133, 7419, 5112, 3655, 4516], female: [9702, 10217, 10126, 10421, 11213, 11009, 10547, 10067, 10059, 10346, 11060, 10963, 9796, 8284, 6073, 4445, 7334] },
  { year: 2016, male: [10024, 10669, 10645, 10835, 11715, 11608, 10903, 10179, 9970, 10356, 10976, 10703, 9349, 7686, 5383, 3755, 4669], female: [9582, 10201, 10185, 10396, 11205, 11161, 10696, 10160, 10045, 10236, 10927, 11027, 9998, 8553, 6375, 4577, 7430] },
  { year: 2017, male: [10085, 10583, 10699, 10811, 11616, 11780, 11092, 10316, 9957, 10220, 10826, 10767, 9565, 7908, 5706, 3853, 4807], female: [9639, 10120, 10240, 10383, 11135, 11314, 10838, 10275, 10036, 10157, 10753, 11043, 10199, 8776, 6716, 4735, 7508] },
  { year: 2018, male: [10267, 10444, 10745, 10803, 11477, 11929, 11277, 10474, 9974, 10104, 10652, 10793, 9770, 8106, 6055, 3970, 4934], female: [9813, 9988, 10284, 10378, 11029, 11454, 10978, 10408, 10040, 10106, 10563, 11016, 10387, 8972, 7073, 4923, 7585] },
  { year: 2019, male: [10469, 10295, 10762, 10803, 11346, 12031, 11466, 10651, 10024, 10015, 10480, 10782, 9952, 8307, 6392, 4132, 5052], female: [10005, 9846, 10299, 10378, 10929, 11556, 11124, 10554, 10072, 10072, 10388, 10952, 10543, 9168, 7418, 5152, 7678] },
  { year: 2020, male: [10619, 10200, 10727, 10806, 11252, 12072, 11656, 10841, 10111, 9958, 10330, 10735, 10101, 8526, 6696, 4355, 5166], female: [10147, 9755, 10262, 10378, 10856, 11606, 11281, 10706, 10139, 10050, 10250, 10858, 10656, 9378, 7731, 5426, 7802] },
  { year: 2021, male: [10850, 10176, 10674, 10853, 11184, 12034, 11826, 11023, 10213, 9911, 10174, 10627, 10195, 8723, 6932, 4592, 5364], female: [10366, 9734, 10217, 10428, 10804, 11585, 11424, 10848, 10222, 10026, 10132, 10719, 10707, 9563, 7971, 5692, 7995] },
  { year: 2022, male: [10967, 10226, 10572, 10922, 11156, 11940, 12002, 11214, 10352, 9902, 10044, 10490, 10266, 8933, 7141, 4880, 5547], female: [10477, 9781, 10122, 10497, 10785, 11518, 11581, 10993, 10340, 10020, 10058, 10553, 10727, 9760, 8184, 6003, 8195] },
  { year: 2023, male: [10999, 10353, 10435, 10984, 11163, 11815, 12162, 11410, 10520, 9929, 9942, 10335, 10308, 9143, 7339, 5195, 5733], female: [10508, 9901, 9992, 10557, 10794, 11424, 11731, 11142, 10482, 10034, 10017, 10377, 10713, 9952, 8382, 6337, 8417] },
  { year: 2024, male: [11012, 10522, 10310, 11003, 11185, 11698, 12273, 11606, 10704, 9987, 9865, 10180, 10310, 9331, 7542, 5500, 5943], female: [10521, 10060, 9871, 10574, 10816, 11335, 11841, 11295, 10633, 10073, 9990, 10214, 10662, 10115, 8582, 6661, 8681] },
  { year: 2025, male: [11049, 10675, 10244, 10960, 11209, 11615, 12318, 11797, 10894, 10076, 9813, 10038, 10272, 9484, 7761, 5777, 6190], female: [10556, 10205, 9804, 10529, 10840, 11274, 11894, 11451, 10785, 10139, 9969, 10080, 10576, 10232, 8792, 6956, 9003] },
  { year: 2026, male: [11060, 10802, 10287, 10914, 11252, 11558, 12296, 11980, 11086, 10188, 9779, 9902, 10186, 9586, 7954, 5990, 6544], female: [10566, 10326, 9849, 10490, 10882, 11232, 11888, 11608, 10938, 10233, 9957, 9977, 10451, 10290, 8975, 7177, 9399] },
  { year: 2027, male: [11096, 10904, 10379, 10808, 11315, 11534, 12208, 12160, 11280, 10329, 9774, 9784, 10064, 9662, 8158, 6182, 6912], female: [10600, 10424, 9938, 10393, 10945, 11216, 11826, 11770, 11086, 10352, 9954, 9908, 10294, 10314, 9167, 7375, 9819] },
  { year: 2028, male: [11153, 10981, 10501, 10671, 11379, 11540, 12082, 12317, 11473, 10494, 9799, 9685, 9920, 9709, 8359, 6367, 7289], female: [10655, 10497, 10054, 10263, 11007, 11224, 11731, 11918, 11233, 10491, 9966, 9867, 10123, 10304, 9353, 7562, 10265] },
  { year: 2029, male: [11205, 11045, 10623, 10554, 11411, 11564, 11964, 12426, 11666, 10674, 9857, 9611, 9775, 9722, 8544, 6562, 7670], female: [10704, 10556, 10167, 10150, 11039, 11248, 11641, 12024, 11382, 10640, 10002, 9839, 9965, 10260, 9513, 7756, 10733] },
  { year: 2030, male: [11233, 11109, 10722, 10493, 11390, 11599, 11885, 12471, 11857, 10865, 9947, 9563, 9644, 9698, 8702, 6776, 8052], female: [10729, 10617, 10256, 10086, 11018, 11282, 11582, 12075, 11536, 10790, 10068, 9818, 9838, 10185, 9635, 7966, 11223] },
  { year: 2031, male: [11233, 11179, 10853, 10532, 11323, 11638, 11830, 12451, 12039, 11055, 10059, 9535, 9521, 9622, 8801, 6955, 8492], female: [10729, 10685, 10385, 10127, 10955, 11320, 11542, 12072, 11694, 10942, 10162, 9808, 9739, 10065, 9689, 8133, 11714] },
  { year: 2032, male: [11243, 11226, 10960, 10627, 11205, 11699, 11808, 12365, 12218, 11248, 10200, 9536, 9415, 9514, 8882, 7146, 8913], female: [10739, 10730, 10490, 10220, 10844, 11380, 11526, 12012, 11856, 11091, 10282, 9808, 9675, 9916, 9717, 8314, 12193] },
  { year: 2033, male: [11257, 11256, 11044, 10754, 11070, 11762, 11814, 12242, 12377, 11442, 10365, 9565, 9328, 9389, 8940, 7339, 9324], female: [10752, 10758, 10570, 10340, 10715, 11442, 11534, 11917, 12005, 11238, 10421, 9823, 9639, 9758, 9716, 8494, 12673] },
  { year: 2034, male: [11268, 11276, 11108, 10876, 10969, 11796, 11839, 12126, 12488, 11636, 10546, 9626, 9263, 9265, 8970, 7522, 9736], female: [10763, 10775, 10628, 10453, 10618, 11475, 11558, 11828, 12112, 11387, 10569, 9861, 9616, 9614, 9687, 8655, 13167] },
  { year: 2035, male: [11271, 11294, 11157, 10971, 10927, 11782, 11874, 12047, 12534, 11828, 10737, 9717, 9223, 9155, 8968, 7686, 10157], female: [10763, 10791, 10668, 10539, 10576, 11461, 11591, 11767, 12161, 11541, 10719, 9927, 9600, 9501, 9630, 8786, 13686] },
  { year: 2036, male: [11266, 11317, 11238, 11098, 10947, 11713, 11914, 11995, 12515, 12008, 10926, 9831, 9203, 9044, 8903, 7781, 10626], female: [10758, 10814, 10751, 10663, 10594, 11394, 11632, 11729, 12159, 11698, 10870, 10022, 9591, 9406, 9517, 8834, 14186] },
  { year: 2037, male: [11268, 11327, 11295, 11208, 11030, 11594, 11977, 11975, 12431, 12188, 11119, 9974, 9210, 8950, 8813, 7867, 11073], female: [10760, 10824, 10807, 10770, 10672, 11281, 11692, 11716, 12101, 11861, 11019, 10142, 9593, 9347, 9381, 8865, 14668] },
  { year: 2038, male: [11273, 11330, 11328, 11295, 11157, 11460, 12040, 11982, 12311, 12348, 11313, 10140, 9246, 8878, 8710, 7937, 11503], female: [10766, 10827, 10838, 10853, 10793, 11151, 11753, 11724, 12008, 12009, 11166, 10282, 9611, 9317, 9238, 8877, 15136] },
  { year: 2039, male: [11278, 11331, 11341, 11361, 11293, 11360, 12074, 12007, 12198, 12460, 11507, 10320, 9310, 8827, 8612, 7986, 11917], female: [10770, 10826, 10848, 10913, 10921, 11055, 11785, 11747, 11919, 12117, 11316, 10429, 9653, 9303, 9113, 8867, 15592] },
  { year: 2040, male: [11280, 11333, 11342, 11407, 11408, 11327, 12061, 12041, 12120, 12508, 11700, 10510, 9404, 8801, 8530, 8010, 12317], female: [10770, 10825, 10843, 10952, 11029, 11021, 11771, 11779, 11858, 12167, 11469, 10578, 9722, 9294, 9020, 8835, 16040] },
  { year: 2041, male: [11280, 11339, 11381, 11484, 11513, 11342, 11994, 12084, 12070, 12490, 11880, 10700, 9520, 8785, 8431, 7958, 12740], female: [10770, 10833, 10884, 11028, 11129, 11034, 11706, 11821, 11822, 12165, 11626, 10729, 9815, 9285, 8930, 8729, 16436] },
  { year: 2042, male: [11288, 11339, 11403, 11542, 11611, 11423, 11877, 12148, 12051, 12409, 12060, 10893, 9665, 8799, 8353, 7889, 13120], female: [10778, 10833, 10908, 11085, 11222, 11110, 11594, 11883, 11810, 12108, 11788, 10878, 9935, 9290, 8879, 8610, 16782] },
  { year: 2043, male: [11301, 11338, 11408, 11578, 11700, 11550, 11743, 12212, 12061, 12292, 12221, 11087, 9831, 8841, 8297, 7814, 13458], female: [10791, 10832, 10912, 11120, 11306, 11230, 11464, 11944, 11819, 12017, 11937, 11025, 10075, 9312, 8858, 8489, 17086] },
  { year: 2044, male: [11319, 11338, 11399, 11594, 11779, 11686, 11644, 12246, 12087, 12183, 12335, 11282, 10012, 8914, 8263, 7746, 13754], female: [10807, 10831, 10901, 11133, 11382, 11359, 11368, 11976, 11843, 11931, 12046, 11175, 10224, 9360, 8853, 8389, 17354] },
  { year: 2045, male: [11336, 11342, 11381, 11593, 11846, 11809, 11612, 12232, 12122, 12110, 12387, 11473, 10201, 9014, 8255, 7698, 14017], female: [10822, 10833, 10877, 11126, 11442, 11474, 11334, 11960, 11873, 11871, 12096, 11328, 10374, 9435, 8857, 8324, 17602] },
  { year: 2046, male: [11353, 11353, 11406, 11629, 11902, 11911, 11631, 12169, 12166, 12062, 12372, 11656, 10392, 9129, 8245, 7616, 14278], female: [10838, 10845, 10905, 11163, 11495, 11571, 11350, 11899, 11918, 11837, 12097, 11485, 10523, 9525, 8847, 8243, 17778] },
  { year: 2047, male: [11382, 11361, 11419, 11653, 11948, 12007, 11713, 12055, 12232, 12046, 12295, 11838, 10586, 9274, 8266, 7556, 14472], female: [10866, 10852, 10920, 11187, 11539, 11661, 11427, 11789, 11981, 11827, 12042, 11649, 10672, 9645, 8856, 8202, 17884] },
  { year: 2048, male: [11420, 11369, 11419, 11661, 11986, 12096, 11839, 11924, 12298, 12058, 12183, 12001, 10781, 9442, 8316, 7518, 14622], female: [10903, 10860, 10920, 11196, 11575, 11744, 11546, 11660, 12043, 11837, 11955, 11799, 10820, 9786, 8884, 8192, 17952] },
  { year: 2049, male: [11462, 11381, 11409, 11655, 12016, 12176, 11975, 11825, 12333, 12086, 12080, 12116, 10976, 9626, 8397, 7505, 14745], female: [10943, 10870, 10907, 11187, 11602, 11820, 11674, 11563, 12075, 11861, 11870, 11907, 10971, 9937, 8939, 8199, 18017] },
  { year: 2050, male: [11502, 11399, 11391, 11633, 12034, 12249, 12096, 11792, 12319, 12122, 12011, 12169, 11166, 9817, 8506, 7519, 14858], female: [10980, 10885, 10885, 11162, 11618, 11888, 11788, 11527, 12057, 11892, 11812, 11958, 11124, 10089, 9022, 8219, 18104] },
  { year: 2051, male: [11545, 11427, 11418, 11650, 12045, 12299, 12199, 11811, 12256, 12167, 11966, 12159, 11349, 10002, 8616, 7512, 14979], female: [11020, 10914, 10914, 11179, 11626, 11934, 11884, 11544, 11997, 11937, 11780, 11961, 11280, 10234, 9108, 8209, 18155] },
  { year: 2052, male: [11597, 11455, 11436, 11661, 12051, 12339, 12293, 11893, 12143, 12232, 11952, 12088, 11532, 10193, 8759, 7538, 15052], female: [11071, 10941, 10934, 11191, 11631, 11971, 11972, 11621, 11887, 12000, 11771, 11909, 11443, 10380, 9226, 8221, 18172] },
  { year: 2053, male: [11654, 11486, 11445, 11662, 12056, 12371, 12377, 12017, 12012, 12298, 11965, 11982, 11696, 10388, 8926, 7595, 15097], female: [11125, 10970, 10943, 11192, 11635, 12000, 12051, 11737, 11759, 12062, 11783, 11825, 11594, 10530, 9368, 8258, 18179] },
  { year: 2054, male: [11708, 11521, 11447, 11652, 12058, 12397, 12453, 12149, 11913, 12333, 11994, 11883, 11813, 10584, 9111, 7684, 15141], female: [11177, 11003, 10941, 11180, 11636, 12024, 12122, 11861, 11660, 12093, 11807, 11744, 11704, 10683, 9522, 8322, 18202] },
  { year: 2055, male: [11754, 11562, 11445, 11631, 12053, 12417, 12521, 12266, 11878, 12320, 12031, 11818, 11868, 10778, 9306, 7803, 15207], female: [11220, 11040, 10935, 11155, 11628, 12041, 12185, 11970, 11622, 12075, 11838, 11688, 11758, 10841, 9679, 8416, 18267] },
  { year: 2056, male: [11801, 11612, 11489, 11650, 12045, 12421, 12571, 12369, 11898, 12258, 12077, 11778, 11862, 10955, 9481, 7904, 15304], female: [11264, 11089, 10981, 11175, 11619, 12042, 12231, 12067, 11640, 12016, 11884, 11659, 11761, 10992, 9816, 8496, 18307] },
  { year: 2057, male: [11844, 11661, 11528, 11666, 12040, 12423, 12610, 12462, 11980, 12146, 12144, 11769, 11798, 11137, 9668, 8042, 15377], female: [11306, 11137, 11020, 11191, 11613, 12042, 12267, 12155, 11717, 11908, 11949, 11653, 11713, 11154, 9961, 8611, 18330] },
  { year: 2058, male: [11883, 11711, 11560, 11676, 12038, 12423, 12639, 12545, 12103, 12017, 12211, 11785, 11701, 11302, 9862, 8207, 15452], female: [11344, 11184, 11050, 11200, 11610, 12040, 12292, 12233, 11833, 11780, 12012, 11667, 11635, 11306, 10111, 8753, 18368] },
  { year: 2059, male: [11916, 11762, 11585, 11678, 12036, 12421, 12660, 12618, 12233, 11919, 12248, 11815, 11609, 11424, 10060, 8392, 15557], female: [11375, 11232, 11071, 11200, 11606, 12036, 12311, 12300, 11954, 11682, 12043, 11692, 11559, 11420, 10269, 8910, 18455] },
  { year: 2060, male: [11938, 11811, 11606, 11673, 12029, 12417, 12676, 12681, 12347, 11884, 12235, 11853, 11548, 11485, 10258, 8591, 15717], female: [11395, 11277, 11087, 11191, 11598, 12030, 12323, 12358, 12059, 11643, 12025, 11723, 11507, 11479, 10431, 9073, 18617] },
  { year: 2061, male: [11952, 11865, 11673, 11710, 12026, 12404, 12681, 12732, 12450, 11906, 12176, 11903, 11515, 11481, 10427, 8750, 15905], female: [11408, 11330, 11155, 11228, 11593, 12015, 12325, 12406, 12158, 11663, 11968, 11772, 11481, 11484, 10578, 9201, 18750] },
  { year: 2062, male: [11969, 11907, 11734, 11747, 12027, 12394, 12681, 12771, 12544, 11988, 12067, 11973, 11511, 11422, 10605, 8928, 16094], female: [11426, 11371, 11215, 11265, 11592, 12003, 12324, 12441, 12247, 11740, 11863, 11839, 11479, 11440, 10738, 9341, 18894] },
  { year: 2063, male: [11986, 11941, 11786, 11779, 12033, 12386, 12677, 12798, 12625, 12110, 11940, 12042, 11530, 11333, 10771, 9118, 16308], female: [11443, 11403, 11264, 11295, 11597, 11994, 12318, 12465, 12323, 11855, 11737, 11903, 11495, 11367, 10892, 9493, 19078] },
  { year: 2064, male: [11998, 11968, 11825, 11803, 12041, 12380, 12670, 12816, 12696, 12239, 11845, 12078, 11562, 11252, 10897, 9316, 16568], female: [11454, 11427, 11300, 11316, 11604, 11985, 12308, 12479, 12388, 11975, 11640, 11934, 11523, 11299, 11010, 9654, 19324] },
  { year: 2065, male: [12000, 11992, 11852, 11821, 12049, 12373, 12661, 12826, 12756, 12350, 11811, 12065, 11601, 11202, 10967, 9518, 16892], female: [11454, 11449, 11322, 11329, 11609, 11977, 12296, 12486, 12441, 12078, 11600, 11916, 11555, 11255, 11077, 9824, 19648] },
  { year: 2066, male: [11996, 12023, 11918, 11882, 12065, 12365, 12649, 12833, 12808, 12454, 11835, 12012, 11655, 11172, 10962, 9673, 17209], female: [11450, 11480, 11388, 11388, 11623, 11966, 12282, 12490, 12491, 12177, 11622, 11863, 11606, 11232, 11081, 9961, 19907] },
  { year: 2067, male: [11999, 12041, 11970, 11941, 12087, 12361, 12638, 12833, 12847, 12547, 11918, 11908, 11728, 11172, 10910, 9845, 17532], female: [11454, 11498, 11438, 11446, 11642, 11960, 12268, 12488, 12526, 12266, 11701, 11761, 11674, 11232, 11041, 10118, 20178] },
  { year: 2068, male: [12005, 12049, 12005, 11992, 12114, 12361, 12626, 12828, 12873, 12629, 12039, 11785, 11799, 11195, 10833, 10011, 17880], female: [11460, 11505, 11472, 11495, 11667, 11958, 12255, 12480, 12549, 12342, 11816, 11638, 11740, 11252, 10978, 10273, 20485] },
  { year: 2069, male: [12008, 12051, 12025, 12031, 12146, 12366, 12615, 12818, 12890, 12699, 12167, 11693, 11838, 11233, 10767, 10144, 18273], female: [11463, 11507, 11489, 11530, 11696, 11961, 12241, 12467, 12561, 12406, 11935, 11543, 11774, 11284, 10922, 10399, 20853] },
  { year: 2070, male: [12002, 12051, 12031, 12055, 12175, 12373, 12604, 12804, 12897, 12758, 12277, 11660, 11827, 11278, 10732, 10228, 18725], female: [11457, 11505, 11491, 11549, 11723, 11966, 12228, 12450, 12565, 12458, 12036, 11504, 11759, 11322, 10892, 10480, 21301] },
  { year: 2071, male: [12000, 12062, 12073, 12114, 12215, 12384, 12596, 12793, 12904, 12810, 12382, 11688, 11777, 11330, 10704, 10218, 19122], female: [11455, 11518, 11534, 11607, 11759, 11974, 12218, 12437, 12570, 12508, 12137, 11530, 11708, 11372, 10870, 10479, 21649] },
  { year: 2072, male: [12003, 12065, 12099, 12164, 12260, 12401, 12590, 12781, 12904, 12849, 12475, 11772, 11679, 11404, 10707, 10172, 19522], female: [11458, 11521, 11561, 11655, 11801, 11988, 12210, 12424, 12568, 12544, 12226, 11610, 11610, 11443, 10874, 10447, 22011] },
  { year: 2073, male: [12007, 12063, 12108, 12199, 12307, 12423, 12587, 12768, 12898, 12875, 12557, 11894, 11563, 11479, 10736, 10111, 19928], female: [11463, 11518, 11570, 11689, 11845, 12008, 12204, 12408, 12560, 12567, 12303, 11725, 11492, 11512, 10900, 10398, 22398] },
  { year: 2074, male: [12011, 12057, 12104, 12219, 12352, 12449, 12586, 12753, 12887, 12891, 12627, 12021, 11475, 11523, 10781, 10065, 20338], female: [11466, 11512, 11564, 11706, 11887, 12032, 12202, 12391, 12545, 12579, 12367, 11844, 11401, 11551, 10939, 10360, 22812] },
  { year: 2075, male: [12010, 12050, 12087, 12221, 12387, 12479, 12589, 12738, 12870, 12898, 12686, 12130, 11445, 11519, 10835, 10053, 20758], female: [11464, 11505, 11545, 11705, 11918, 12058, 12202, 12373, 12525, 12580, 12417, 11944, 11366, 11541, 10986, 10349, 23264] },
  { year: 2076, male: [12017, 12057, 12110, 12255, 12425, 12513, 12600, 12730, 12859, 12905, 12739, 12236, 11476, 11470, 10885, 10025, 21050], female: [11471, 11513, 11569, 11739, 11954, 12088, 12209, 12363, 12513, 12587, 12469, 12046, 11392, 11491, 11034, 10327, 23537] },
  { year: 2077, male: [12032, 12059, 12121, 12279, 12461, 12552, 12614, 12724, 12847, 12906, 12778, 12331, 11563, 11377, 10960, 10034, 21294], female: [11486, 11515, 11582, 11763, 11987, 12124, 12221, 12355, 12499, 12586, 12506, 12137, 11474, 11397, 11106, 10337, 23778] },
  { year: 2078, male: [12050, 12058, 12119, 12288, 12493, 12595, 12633, 12719, 12834, 12900, 12806, 12414, 11686, 11268, 11039, 10071, 21520], female: [11504, 11514, 11581, 11772, 12016, 12163, 12237, 12348, 12483, 12577, 12530, 12215, 11591, 11285, 11181, 10371, 24018] },
  { year: 2079, male: [12067, 12056, 12106, 12283, 12517, 12635, 12656, 12716, 12818, 12888, 12823, 12484, 11813, 11190, 11091, 10126, 21763], female: [11519, 11512, 11566, 11766, 12039, 12200, 12257, 12342, 12465, 12562, 12542, 12279, 11710, 11202, 11227, 10421, 24296] },
  { year: 2080, male: [12076, 12054, 12084, 12265, 12530, 12670, 12681, 12715, 12800, 12872, 12830, 12543, 11922, 11169, 11098, 10195, 22054], female: [11527, 11509, 11541, 11744, 12049, 12231, 12278, 12337, 12443, 12540, 12543, 12330, 11811, 11173, 11226, 10481, 24646] },
  { year: 2081, male: [12096, 12069, 12101, 12279, 12545, 12702, 12714, 12725, 12792, 12861, 12838, 12598, 12028, 11199, 11048, 10237, 22230], female: [11547, 11525, 11561, 11760, 12062, 12260, 12307, 12345, 12434, 12529, 12551, 12383, 11913, 11200, 11176, 10524, 24817] },
  { year: 2082, male: [12117, 12082, 12110, 12288, 12555, 12733, 12751, 12739, 12785, 12849, 12840, 12640, 12125, 11286, 10961, 10313, 22378], female: [11568, 11537, 11572, 11770, 12072, 12288, 12342, 12357, 12426, 12516, 12551, 12423, 12006, 11283, 11087, 10600, 24974] },
  { year: 2083, male: [12137, 12095, 12110, 12286, 12561, 12760, 12790, 12756, 12780, 12835, 12835, 12669, 12210, 11411, 10864, 10399, 22531], female: [11587, 11549, 11572, 11768, 12076, 12312, 12377, 12371, 12419, 12501, 12544, 12448, 12086, 11402, 10986, 10682, 25151] },
  { year: 2084, male: [12152, 12107, 12101, 12273, 12561, 12780, 12826, 12776, 12776, 12820, 12825, 12688, 12283, 11541, 10798, 10463, 22722], female: [11601, 11560, 11561, 11754, 12075, 12330, 12409, 12387, 12411, 12482, 12529, 12462, 12153, 11525, 10913, 10739, 25388] },
  { year: 2085, male: [12161, 12117, 12086, 12249, 12552, 12792, 12856, 12797, 12773, 12802, 12809, 12696, 12342, 11653, 10789, 10486, 22985], female: [11608, 11568, 11543, 11727, 12064, 12339, 12435, 12404, 12403, 12459, 12507, 12463, 12205, 11628, 10895, 10752, 25721] },
  { year: 2086, male: [12176, 12141, 12111, 12258, 12548, 12802, 12888, 12829, 12782, 12794, 12799, 12706, 12399, 11756, 10818, 10432, 23146], female: [11623, 11593, 11570, 11738, 12060, 12347, 12464, 12434, 12412, 12450, 12498, 12472, 12259, 11729, 10922, 10701, 25878] },
  { year: 2087, male: [12195, 12160, 12132, 12264, 12544, 12807, 12916, 12866, 12796, 12787, 12788, 12710, 12443, 11853, 10906, 10353, 23299], female: [11642, 11613, 11592, 11745, 12056, 12351, 12490, 12467, 12423, 12443, 12486, 12475, 12300, 11822, 11007, 10620, 26040] },
  { year: 2088, male: [12213, 12176, 12145, 12264, 12538, 12808, 12940, 12903, 12812, 12782, 12776, 12708, 12476, 11941, 11033, 10271, 23461], female: [11660, 11628, 11605, 11744, 12050, 12350, 12510, 12501, 12437, 12435, 12471, 12470, 12328, 11905, 11129, 10533, 26226] },
  { year: 2089, male: [12226, 12189, 12150, 12255, 12530, 12804, 12956, 12937, 12831, 12778, 12762, 12699, 12497, 12019, 11167, 10224, 23646], female: [11672, 11639, 11608, 11734, 12040, 12345, 12524, 12530, 12452, 12428, 12453, 12456, 12344, 11977, 11256, 10477, 26452] },
  { year: 2090, male: [12229, 12199, 12146, 12238, 12514, 12794, 12964, 12963, 12850, 12774, 12744, 12684, 12507, 12084, 11285, 10234, 23877], female: [11673, 11646, 11600, 11714, 12022, 12332, 12528, 12551, 12465, 12418, 12430, 12434, 12348, 12033, 11365, 10476, 26750] },
  { year: 2091, male: [12238, 12223, 12179, 12257, 12507, 12786, 12974, 12995, 12883, 12785, 12738, 12678, 12521, 12140, 11384, 10261, 23954], female: [11683, 11671, 11635, 11734, 12015, 12324, 12536, 12581, 12496, 12428, 12423, 12428, 12360, 12088, 11464, 10502, 26813] },
  { year: 2092, male: [12248, 12241, 12205, 12275, 12502, 12778, 12978, 13024, 12920, 12799, 12733, 12671, 12529, 12187, 11482, 10351, 23994], female: [11693, 11690, 11662, 11753, 12010, 12314, 12538, 12607, 12530, 12441, 12418, 12419, 12365, 12132, 11559, 10590, 26847] },
  { year: 2093, male: [12255, 12254, 12222, 12288, 12497, 12767, 12975, 13045, 12956, 12816, 12729, 12661, 12530, 12224, 11575, 10482, 24050], female: [11700, 11702, 11678, 11766, 12005, 12303, 12534, 12626, 12563, 12455, 12411, 12407, 12363, 12163, 11646, 10717, 26912] },
  { year: 2094, male: [12255, 12261, 12229, 12292, 12491, 12754, 12967, 13058, 12988, 12833, 12725, 12648, 12524, 12250, 11659, 10620, 24177], female: [11700, 11708, 11683, 11767, 11998, 12288, 12524, 12636, 12590, 12468, 12403, 12389, 12351, 12183, 11723, 10849, 27069] },
  { year: 2095, male: [12245, 12263, 12225, 12285, 12481, 12736, 12951, 13062, 13011, 12851, 12721, 12631, 12511, 12266, 11732, 10748, 24413], female: [11688, 11708, 11675, 11757, 11985, 12268, 12505, 12635, 12608, 12479, 12393, 12365, 12331, 12191, 11786, 10967, 27363] },
  { year: 2096, male: [12242, 12281, 12258, 12313, 12485, 12725, 12944, 13072, 13044, 12884, 12733, 12628, 12508, 12281, 11786, 10837, 24506], female: [11686, 11726, 11709, 11784, 11988, 12256, 12496, 12643, 12638, 12511, 12404, 12361, 12326, 12203, 11840, 11059, 27439] },
  { year: 2097, male: [12240, 12290, 12282, 12336, 12492, 12715, 12933, 13075, 13071, 12921, 12748, 12625, 12504, 12291, 11834, 10934, 24620], female: [11684, 11735, 11733, 11808, 11994, 12245, 12485, 12644, 12663, 12545, 12417, 12357, 12319, 12211, 11886, 11155, 27549] },
  { year: 2098, male: [12234, 12292, 12295, 12352, 12500, 12704, 12919, 13070, 13092, 12957, 12765, 12622, 12497, 12296, 11876, 11032, 24783], female: [11679, 11737, 11746, 11823, 12001, 12234, 12469, 12638, 12681, 12577, 12431, 12351, 12309, 12212, 11922, 11250, 27724] },
  { year: 2099, male: [12221, 12287, 12297, 12357, 12506, 12694, 12901, 13058, 13104, 12988, 12783, 12620, 12486, 12295, 11910, 11127, 25016], female: [11667, 11732, 11747, 11827, 12006, 12223, 12450, 12624, 12689, 12604, 12445, 12344, 12294, 12205, 11949, 11337, 27992] },
  { year: 2100, male: [12197, 12276, 12288, 12352, 12506, 12682, 12879, 13040, 13105, 13011, 12801, 12616, 12471, 12288, 11935, 11213, 25348], female: [11642, 11720, 11734, 11818, 12003, 12209, 12426, 12603, 12686, 12621, 12456, 12335, 12272, 12190, 11965, 11412, 28385] }
];

// Totals by year for the population chart. From this year on, the line is a projection: dashed and paler
var currentYear = new Date().getFullYear();
var totalsData = populationData.map(function(row) {
  return {
    year: row.year,
    male: sum(row.male),
    female: sum(row.female),
    lineSettings: row.year == currentYear ? { strokeDasharray: [3, 3], strokeOpacity: 0.3, fillOpacity: 0.3 } : undefined
  };
});

// One row per age group for the pyramid; female values are negative, so their bars grow to the left
function getPyramidData(year) {
  var row = populationData.find(function(item) { return item.year == year; });
  return ageGroups.map(function(age, i) {
    return { age: age, male: row.male[i], female: -row.female[i] };
  });
}

// adds up an array of numbers
function sum(values) {
  return values.reduce(function(total, value) { return total + value; }, 0);
}

// Create root element
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
var root = am5.Root.new("chartdiv");

// Set themes
// https://www.amcharts.com/docs/v5/concepts/themes/
root.setThemes([
  am5themes_Animated.new(root),
  am5themes_Responsive.new(root)
]);

// The data is in thousands: show 1,000 as "1M", without the minus sign of the female values
root.numberFormatter.setAll({
  numberFormat: "#,###.#as", // a: the big-number suffix below; s: no minus sign
  bigNumberPrefixes: [
    { "number": 1e+3, "suffix": "M" }
  ]
});

// Create wrapper for charts
var container = root.container.children.push(am5.Container.new(root, {
  width: am5.p100,              // fills the whole chart area
  height: am5.p100,
  layout: root.horizontalLayout // the pyramid and the population chart side by side
}));

// ==========================================
// Pyramid chart
// ==========================================

// Create chart
// https://www.amcharts.com/docs/v5/charts/xy-chart/
var pyramidChart = container.children.push(
  am5xy.XYChart.new(root, {
    width: am5.p50,             // half the width
    panX: false,                // no dragging the plot
    panY: false,
    wheelX: "none",             // the mouse wheel scrolls the page, not the chart
    wheelY: "none",
    layout: root.verticalLayout // the header above the plot
  })
);

// Add a header above the pyramid: "Females" on the left, the year shown in the middle, "Males" on the right
var pyramidHeader = pyramidChart.children.unshift(am5.Container.new(root, {
  width: am5.p100 // the header spans the chart's width
}));

var femaleLabel = pyramidHeader.children.push(am5.Label.new(root, {
  text: "Females",
  fontSize: 16,     // 16px text...
  centerY: am5.p50, // ...its middle...
  y: am5.p50,       // ...halfway down the header...
  fill: pyramidChart.get("colors").getIndex(1) // ...in the color of the female bars
}));

var pyramidTitle = pyramidHeader.children.push(am5.Label.new(root, {
  text: currentYear + "",
  fontSize: 20,    // 20px text...
  x: am5.p50,      // ...centered...
  centerX: am5.p50 // ...by its own middle
}));

var maleLabel = pyramidHeader.children.push(am5.Label.new(root, {
  text: "Males",
  fontSize: 16,      // 16px text...
  x: am5.p100,       // ...at the right edge...
  centerX: am5.p100, // ...aligned by its own right edge...
  centerY: am5.p50,  // ...vertically centered...
  y: am5.p50,
  fill: pyramidChart.get("colors").getIndex(0) // ...in the color of the male bars
}));

// Create axes
// https://www.amcharts.com/docs/v5/charts/xy-chart/axes/
var pyramidXAxis = pyramidChart.xAxes.push(
  am5xy.ValueAxis.new(root, {
    // the same reach on both sides of zero, so the two halves of the pyramid compare
    min: -15000,
    max: 15000,
    strictMinMax: true,
    renderer: am5xy.AxisRendererX.new(root, {
      minGridDistance: 50, // at least 50px between value labels
      strokeOpacity: 0.1   // a faint axis line
    })
  })
);

var yRenderer = am5xy.AxisRendererY.new(root, {
  minGridDistance: 10 // labels may sit 10px apart, so every age group gets one
});

yRenderer.grid.template.setAll({
  location: 1 // grid lines at the end of each age group's row, between the bars
});

var pyramidYAxis = pyramidChart.yAxes.push(
  am5xy.CategoryAxis.new(root, {
    categoryField: "age",
    renderer: yRenderer
  })
);

// Add series
// https://www.amcharts.com/docs/v5/charts/xy-chart/series/
var pyramidSeriesMale = pyramidChart.series.push(
  am5xy.ColumnSeries.new(root, {
    name: "Males",
    xAxis: pyramidXAxis,
    yAxis: pyramidYAxis,
    categoryYField: "age",
    valueXField: "male",
    // not side by side: both series fill the whole row, males right of zero and females left
    clustered: false,
    tooltip: am5.Tooltip.new(root, {
      labelText: "Males, {categoryY}: {valueX}" // as "Males, 20-24: 11.4M"
    })
  })
);

var pyramidSeriesFemale = pyramidChart.series.push(
  am5xy.ColumnSeries.new(root, {
    name: "Females",
    xAxis: pyramidXAxis,
    yAxis: pyramidYAxis,
    categoryYField: "age",
    valueXField: "female",
    clustered: false, // the same rows as the male bars
    tooltip: am5.Tooltip.new(root, {
      labelText: "Females, {categoryY}: {valueX}" // no minus sign: the number format's s drops it
    })
  })
);

var pyramidData = getPyramidData(currentYear);
pyramidYAxis.data.setAll(pyramidData);
pyramidSeriesMale.data.setAll(pyramidData);
pyramidSeriesFemale.data.setAll(pyramidData);

// Add cursor
// https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/
var pyramidCursor = pyramidChart.set("cursor", am5xy.XYCursor.new(root, {
  xAxis: pyramidXAxis,
  yAxis: pyramidYAxis
}));
pyramidCursor.lineX.set("visible", false); // no vertical cursor line...
pyramidCursor.lineY.set("visible", false); // ...and no horizontal one

// Show another year: the bars grow or shrink to its values
var shownYear = currentYear;
function showYear(year) {
  if (year == shownYear || year < 1950 || year > 2100) {
    return;
  }
  shownYear = year;
  var data = getPyramidData(year);
  am5.array.each(data, function(row, i) {
    pyramidSeriesMale.data.setIndex(i, row);
    pyramidSeriesFemale.data.setIndex(i, row);
  });
  pyramidTitle.set("text", year + "");

  // Late in the projection the 80+ group outgrows the axis: widen it in steps of 5M, so no bar is cut
  var largest = 0;
  am5.array.each(data, function(row) {
    largest = Math.max(largest, row.male, -row.female);
  });
  var limit = Math.max(15000, Math.ceil(largest / 5000) * 5000);
  if (limit != pyramidXAxis.get("max")) {
    pyramidXAxis.setAll({ min: -limit, max: limit });
  }
}

// ==========================================
// Population chart
// ==========================================

// Create chart
// https://www.amcharts.com/docs/v5/charts/xy-chart/
var popChart = container.children.push(
  am5xy.XYChart.new(root, {
    width: am5.p50,             // half the width
    panX: false,                // no dragging the plot
    panY: false,
    wheelX: "none",             // the mouse wheel scrolls the page, not the chart
    wheelY: "none",
    layout: root.verticalLayout // the title above the plot
  })
);

// Add title
var popTitle = popChart.children.unshift(am5.Label.new(root, {
  text: "U.S. population",
  fontSize: 20,    // 20px text...
  x: am5.p50,      // ...centered...
  centerX: am5.p50 // ...by its own middle
}));

// Create axes: years on a value axis
// https://www.amcharts.com/docs/v5/charts/xy-chart/axes/
var popXAxis = popChart.xAxes.push(
  am5xy.ValueAxis.new(root, {
    min: 1950,          // the years from 1950...
    max: 2100,          // ...to 2100...
    strictMinMax: true, // ...exactly, not rounded out
    numberFormat: "#",  // years without a thousands separator
    renderer: am5xy.AxisRendererX.new(root, {
      minGridDistance: 50 // at least 50px between year labels
    }),
    tooltip: am5.Tooltip.new(root, {}) // shows the year at the cursor
  })
);

var popYAxis = popChart.yAxes.push(
  am5xy.ValueAxis.new(root, {
    min: 0, // start at zero
    maxDeviation: 0.1,
    renderer: am5xy.AxisRendererY.new(root, {
      opposite: true // on the right side
    })
  })
);

// Add series: males and females, stacked
// https://www.amcharts.com/docs/v5/charts/xy-chart/series/
var popSeriesMale = popChart.series.push(
  am5xy.LineSeries.new(root, {
    name: "Males",
    xAxis: popXAxis,
    yAxis: popYAxis,
    valueYField: "male",
    valueXField: "year",
    stacked: true
  })
);

var popSeriesFemale = popChart.series.push(
  am5xy.LineSeries.new(root, {
    name: "Females",
    xAxis: popXAxis,
    yAxis: popYAxis,
    valueYField: "female",
    valueXField: "year",
    stacked: true, // the female area sits on top of the male one
    tooltip: am5.Tooltip.new(root, {
      pointerOrientation: "horizontal", // the tooltip points sideways, not down at the line
      labelText: "[bold]U.S. population in {valueX.formatNumber('#')}[/]\nMales: {male}\nFemales: {female}"
    })
  })
);

// Lines and fills; the current year's settings (in the data) start the dashed, paler projection
am5.array.each([popSeriesMale, popSeriesFemale], function(series) {
  series.strokes.template.setAll({
    strokeWidth: 2, // 2px lines
    templateField: "lineSettings"
  });
  series.fills.template.setAll({
    visible: true,    // shown (line series fills are hidden by default)
    fillOpacity: 0.5, // half see-through
    templateField: "lineSettings"
  });
  series.data.setAll(totalsData);
});

// Add cursor: moving it over a year shows that year in the pyramid
// https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/
var popCursor = popChart.set("cursor", am5xy.XYCursor.new(root, {
  xAxis: popXAxis,
  yAxis: popYAxis
}));
popCursor.lineY.set("visible", false); // no horizontal cursor line

popCursor.events.on("cursormoved", function(ev) {
  var x = ev.target.getPrivate("positionX");
  showYear(Math.round(popXAxis.positionToValue(x)));
});

// Make stuff animate on load
// https://www.amcharts.com/docs/v5/concepts/animations/
pyramidSeriesMale.appear(1000, 100);
pyramidSeriesFemale.appear(1000, 100);
popSeriesMale.appear(1000, 100);
popSeriesFemale.appear(1000, 100);
pyramidChart.appear(1000, 100);
popChart.appear(1000, 100);

More Miscellaneous demos.