The latest global estimate places 273 million children, adolescents, and youth out of school in 2024. The figure appears in UNESCO’s 2026 Global Education Monitoring reporting and covers the official age groups for primary, lower secondary, and upper secondary education. It is therefore a 2024 reference-year estimate published in the 2026 reporting cycle, not a claim that 273 million were counted in calendar year 2026. [UNESCO GEM]
Of the global total, 79 million were of primary-school age, 64 million of lower-secondary age, and 130 million of upper-secondary age. Upper-secondary-age youth account for about 48% of the total. UNESCO also estimates 140 million boys and 133 million girls were out of school. [UNESCO]
Global Out-of-School Population by Education Level
The three education levels do not contribute equally to the global total. Upper-secondary-age youth form the largest group, with 130 million out of school, compared with 79 million primary-age children and 64 million lower-secondary-age adolescents. The comparison matters because a single global total can hide where exclusion is concentrated across the school-age span. [UNESCO]
Out-of-School Population by Education Level
UNESCO 2026 reporting estimates for the 2024 reference year.
Data source — UNESCO GEM Report and UIS, 2024 estimates.
| Education Level | Out of School | Reference Year | Source |
|---|---|---|---|
| Primary-school age | 79 million | 2024 | [UNESCO] |
| Lower-secondary age | 64 million | 2024 | [UNESCO] |
| Upper-secondary age | 130 million | 2024 | [UNESCO] |
Out-of-School Children by Country
Country comparisons require a narrower definition than the 273 million global figure. The table below uses the official indicator “Children out of school, primary” from the World Bank Gender Data Portal, whose source is the UNESCO Institute for Statistics. It reports the number of children of official primary-school age who are outside school. The portal identifies its source publication as the February 2026 UIS data release. [World Bank / UIS]
The country values are not all from 2026. Each row keeps its own reference year because national observations arrive on different schedules. A value from 2023 or 2024 must remain labeled as such even when it appears in a database released in 2026. Where the current source reports no usable total, the table says Data not available rather than filling the gap. The UIS Data Browser itself identifies February 2026 as its latest education release. [UNESCO UIS]
Scope of the country table: these are primary-age counts. They should not be added to unrelated lower- or upper-secondary observations from different years to manufacture a country total. The broader 273 million estimate uses modeled primary, lower-secondary, and upper-secondary series designed for global and regional comparison.
| Country or Economy | Primary-Age Children Out of School | Reference Year |
|---|---|---|
| Afghanistan | Data not available | 2025 |
| Albania | 617 | 2024 |
| Algeria | 78,683 | 2025 |
| Andorra | 102 | 2024 |
| Angola | 2,281,912 | 2023 |
| Antigua and Barbuda | 133 | 2023 |
| Argentina | 32,816 | 2023 |
| Armenia | 1,710 | 2024 |
| Australia | 2,833 | 2024 |
| Austria | 5,200 | 2024 |
| Azerbaijan | 152 | 2024 |
| Bahamas, The | 4,585 | 2024 |
| Bahrain | 5,993 | 2024 |
| Bangladesh | 918,575 | 2024 |
| Barbados | 3,420 | 2024 |
| Belarus | 20,600 | 2024 |
| Belgium | 13,226 | 2023 |
| Belize | 4,953 | 2024 |
| Benin | 213,285 | 2022 |
| Bhutan | 8,385 | 2024 |
| Bolivia | 136,027 | 2024 |
| Bosnia and Herzegovina | 2,933 | 2023 |
| Botswana | 1,869 | 2022 |
| Brazil | 316,818 | 2024 |
| British Virgin Islands | 1,080 | 2024 |
| Brunei Darussalam | 1,438 | 2024 |
| Bulgaria | 14,529 | 2024 |
| Burkina Faso | 1,363,187 | 2024 |
| Burundi | 661,724 | 2025 |
| Cabo Verde | 24,851 | 2022 |
| Cambodia | 76,741 | 2024 |
| Cameroon | 173,924 | 2024 |
| Canada | 127,666 | 2023 |
| Cayman Islands | 234 | 2024 |
| Central African Republic | Data not available | 2025 |
| Chad | 855,041 | 2024 |
| Chile | 31,779 | 2024 |
| China | Data not available | 2025 |
| Colombia | 289,295 | 2022 |
| Comoros | 21,743 | 2024 |
| Congo, Dem. Rep. | Data not available | 2025 |
| Congo, Rep. | 171,125 | 2023 |
| Costa Rica | 19,701 | 2024 |
| Côte d’Ivoire | 650,800 | 2024 |
| Croatia | 2,642 | 2023 |
| Cuba | 33,328 | 2024 |
| Curaçao | 3,547 | 2024 |
| Cyprus | 247 | 2023 |
| Czechia | 4,700 | 2023 |
| Denmark | 3,868 | 2024 |
| Djibouti | Data not available | 2025 |
| Dominica | 230 | 2023 |
| Dominican Republic | 56,334 | 2024 |
| Ecuador | 86,090 | 2023 |
| Egypt, Arab Rep. | 559,709 | 2024 |
| El Salvador | 57,339 | 2024 |
| Equatorial Guinea | Data not available | 2025 |
| Eritrea | 179,166 | 2022 |
| Estonia | 3,091 | 2024 |
| Eswatini | 7,275 | 2022 |
| Ethiopia | 4,236,782 | 2024 |
| Fiji | 2,471 | 2024 |
| Finland | 6,433 | 2024 |
| France | 8,155 | 2024 |
| Gabon | 77,438 | 2019 |
| Gambia, The | 74,577 | 2025 |
| Georgia | 21,241 | 2024 |
| Germany | 8,820 | 2024 |
| Ghana | 235,313 | 2024 |
| Gibraltar | 43 | 2024 |
| Greece | 622 | 2023 |
| Grenada | 535 | 2024 |
| Guatemala | 201,342 | 2024 |
| Guinea | 308,947 | 2020 |
| Guinea-Bissau | Data not available | 2025 |
| Guyana | 17,362 | 2023 |
| Haiti | 3,719 | 2016 |
| Honduras | 346,452 | 2024 |
| Hong Kong SAR, China | 4,491 | 2024 |
| Hungary | 10,500 | 2024 |
| Iceland | 599 | 2023 |
| India | 134,967 | 2025 |
| Indonesia | 250,575 | 2025 |
| Iran, Islamic Rep. | 9,163 | 2023 |
| Iraq | Data not available | 2025 |
| Ireland | 10,313 | 2022 |
| Israel | 28,644 | 2024 |
| Italy | 52,117 | 2023 |
| Jamaica | 9,419 | 2024 |
| Japan | 4,225 | 2023 |
| Jordan | 21,351 | 2024 |
| Kazakhstan | 128,155 | 2025 |
| Kenya | 468,923 | 2023 |
| Kiribati | 1,596 | 2024 |
| Korea, Rep. | 1,383 | 2024 |
| Kuwait | 21,183 | 2016 |
| Kyrgyz Republic | 18,854 | 2025 |
| Lao PDR | 82,273 | 2025 |
| Latvia | 3,481 | 2024 |
| Lebanon | 146,896 | 2024 |
| Lesotho | 124,175 | 2024 |
| Liberia | 327,280 | 2022 |
| Liechtenstein | 16 | 2021 |
| Lithuania | 156 | 2024 |
| Luxembourg | 111 | 2024 |
| Macao SAR, China | 4,608 | 2024 |
| Madagascar | 135,621 | 2024 |
| Malawi | 70,758 | 2022 |
| Malaysia | 404,724 | 2024 |
| Maldives | 418 | 2024 |
| Mali | 1,186,892 | 2023 |
| Malta | 738 | 2023 |
| Marshall Islands | 78 | 2024 |
| Mauritania | 291,098 | 2024 |
| Mauritius | 618 | 2024 |
| Mexico | 46,859 | 2024 |
| Micronesia, Fed. Sts. | 3,301 | 2024 |
| Moldova | 588 | 2024 |
| Mongolia | 35,209 | 2024 |
| Montenegro | 80 | 2023 |
| Morocco | 18,988 | 2021 |
| Mozambique | 64,247 | 2022 |
| Myanmar | Data not available | 2025 |
| Namibia | 4,230 | 2024 |
| Nauru | 119 | 2025 |
| Nepal | 21,146 | 2025 |
| Netherlands | 5,698 | 2023 |
| New Zealand | 10,396 | 2024 |
| Nicaragua | 53,481 | 2023 |
| Niger | 1,876,779 | 2024 |
| Nigeria | 9,070,702 | 2023 |
| North Macedonia | 4,151 | 2023 |
| Norway | 6,077 | 2024 |
| Oman | 21,922 | 2024 |
| Pakistan | 5,434,996 | 2024 |
| Palau | 18 | 2024 |
| Panama | 35,837 | 2024 |
| Papua New Guinea | 53,289 | 2021 |
| Paraguay | 105,859 | 2024 |
| Peru | 5,359 | 2019 |
| Philippines | 1,616,165 | 2024 |
| Poland | 1,392 | 2024 |
| Portugal | 2,741 | 2023 |
| Puerto Rico | 21,785 | 2024 |
| Qatar | 8,638 | 2024 |
| Romania | 160,246 | 2023 |
| Russian Federation | 187,975 | 2023 |
| Rwanda | 19,504 | 2024 |
| Samoa | 626 | 2024 |
| San Marino | 91 | 2024 |
| Sao Tome and Principe | 969 | 2017 |
| Saudi Arabia | 17,458 | 2024 |
| Senegal | 675,615 | 2024 |
| Serbia | 8,749 | 2024 |
| Seychelles | 699 | 2024 |
| Singapore | 504 | 2023 |
| Sint Maarten (Dutch part) | 196 | 2023 |
| Slovak Republic | 2,535 | 2024 |
| Slovenia | 1,904 | 2023 |
| Solomon Islands | 36,440 | 2024 |
| South Africa | 448,146 | 2023 |
| South Sudan | 1,199,083 | 2024 |
| Spain | 34,050 | 2024 |
| Sri Lanka | 157,499 | 2023 |
| St. Lucia | 1,033 | 2024 |
| St. Vincent and the Grenadines | 68 | 2017 |
| Sudan | 3,169,356 | 2019 |
| Suriname | 10,697 | 2024 |
| Sweden | 4,270 | 2024 |
| Switzerland | 787 | 2024 |
| Syrian Arab Republic | 581,845 | 2024 |
| Tajikistan | 33,418 | 2017 |
| Tanzania | 2,011,380 | 2024 |
| Thailand | 36,067 | 2025 |
| Timor-Leste | 13,085 | 2023 |
| Togo | 9,263 | 2024 |
| Tonga | 354 | 2022 |
| Trinidad and Tobago | 9,223 | 2024 |
| Tunisia | 14,015 | 2023 |
| Türkiye | 32,563 | 2023 |
| Turkmenistan | 28,415 | 2024 |
| Turks and Caicos Islands | 4 | 2024 |
| Tuvalu | 7 | 2024 |
| Uganda | Data not available | 2025 |
| Ukraine | 193,775 | 2024 |
| United Arab Emirates | 21 | 2024 |
| United Kingdom | 3,326 | 2023 |
| United States | 965,853 | 2022 |
| Uruguay | 98 | 2023 |
| Uzbekistan | 18,501 | 2025 |
| Vanuatu | 1,261 | 2024 |
| Venezuela, RB | 17,643 | 2023 |
| Viet Nam | 144,562 | 2024 |
| Yemen, Rep. | 1,551,489 | 2016 |
| Zambia | 136,539 | 2024 |
| Zimbabwe | 332,314 | 2024 |
Data source for every row — [World Bank / UIS]. Values are the latest total observations surfaced in the current UIS-backed World Bank series; reference years vary. Small decimal estimates shown by the source are rounded to the nearest child in this table.
Why Country Counts and Country Rates Answer Different Questions
An out-of-school count tells how many people in an official school-age group are outside education. An out-of-school rate expresses that number as a share of the corresponding official-age population. UNESCO explicitly reports the indicator in both forms. [UNESCO]
| Measure | What It Shows | Best Use |
|---|---|---|
| Number | Absolute number of children or youth outside education | Shows the scale of the population affected |
| Rate | Share of the official-age population outside education | Supports comparison across differently sized populations |
| Reference year | Year to which the observation or estimate applies | Prevents old and new observations from being presented as simultaneous |
A large country can record a high number even when its rate is lower than that of a much smaller country. The reverse is also possible: a small population can have a high out-of-school rate but a modest absolute count. Number and rate should therefore remain separate measures, not two versions of the same ranking.
Largest Recent Primary-Age Counts in the Current Country Series
Among country observations in the current UIS-backed primary-age series with reference years from 2023 through 2025, several national counts exceed one million. The chart uses exact totals shown by the source and keeps the observation year visible in the fallback table. Population size strongly affects these counts, so they should not be interpreted as out-of-school rates. [World Bank / UIS]
Large Recent Primary-Age Out-of-School Populations
Latest available total in the current series for countries shown, reference years 2023–2025.
Data source — World Bank Gender Data Portal using UNESCO UIS data, February 2026 release.
| Country | Primary-Age Children Out of School | Reference Year | Source |
|---|---|---|---|
| Nigeria | 9,070,702 | 2023 | [World Bank / UIS] |
| Pakistan | 5,434,996 | 2024 | [World Bank / UIS] |
| Ethiopia | 4,236,782 | 2024 | [World Bank / UIS] |
| Angola | 2,281,912 | 2023 | [World Bank / UIS] |
| Tanzania | 2,011,380 | 2024 | [World Bank / UIS] |
| Niger | 1,876,779 | 2024 | [World Bank / UIS] |
| Philippines | 1,616,165 | 2024 | [World Bank / UIS] |
| Burkina Faso | 1,363,187 | 2024 | [World Bank / UIS] |
| South Sudan | 1,199,083 | 2024 | [World Bank / UIS] |
| Mali | 1,186,892 | 2023 | [World Bank / UIS] |
The Global Out-of-School Rate Has Stalled
The long-run pattern differs from the steady expansion in total enrollment. UNESCO reports that the out-of-school population fell by 33% between 2000 and 2015, then rose by 3% by 2024. For the combined primary- and secondary-school-age population, the global out-of-school rate dropped from 27% in 2000 to 17% in 2015 and has since remained around that level. [UNESCO GEM]
Global Out-of-School Rate Trend
Share of the primary- and secondary-school-age population outside school.
Data source — UNESCO GEM Report 2026. The 2024 point is shown at approximately 17%, reflecting the reported post-2015 plateau.
| Year | Global Out-of-School Rate | Population Covered | Source |
|---|---|---|---|
| 2000 | 27% | Primary and secondary school age | [UNESCO GEM] |
| 2015 | 17% | Primary and secondary school age | [UNESCO GEM] |
| 2024 | About 17% | Primary and secondary school age | [UNESCO GEM] |
Where the Global Out-of-School Population Is Concentrated
Geographic concentration is strong. UNESCO estimates that three quarters of all out-of-school children, adolescents, and youth are in sub-Saharan Africa and Central and Southern Asia. This is a share of the worldwide total across primary and secondary school-age groups, not a claim that every country in either region has the same rate. [UNESCO GEM]
Income-group differences are also wide. In the 2026 GEM monitoring data, the out-of-school rate is about 36% in low-income countries and 3% in high-income countries. The low-income-country out-of-school population has grown by 29% since 2015, while the corresponding population has remained broadly flat in other income groups. [UNESCO GEM]
Boys and Girls in the Global Estimate
The 2024 modeled total consists of 140 million boys and 133 million girls out of school. The difference is about seven million globally. A global sex total should not be transferred directly to individual countries, because the size and direction of sex differences vary across national education systems and age groups. [UNESCO GEM]
What “Out of School” Means in Education Statistics
Out-of-school status is tied to an official age range for a defined education level. SDG indicator 4.1.4 covers the out-of-school rate one year before primary education and at primary, lower secondary, and upper secondary levels. [UNESCO UIS]
The term is not identical to dropout. Dropout describes an education pathway in which a learner leaves before completing a stage. Out-of-school status is a population measure: it asks whether a person in the relevant official-age group is participating in education. A child who has never entered school can therefore be out of school without being a dropout. Likewise, a child enrolled above or below the level normally associated with that age may still count as being in education under the indicator’s participation logic.
Official School Ages Matter
Primary and secondary age ranges are not defined by one universal birthday rule. National education systems set official entry ages and the expected duration of each level. Cross-country statistics align each population with those official ranges. That is why comparing raw ages without the education-level definition can produce a different result from the UIS indicator.
Enrollment and Attendance Are Different Data Sources
Administrative systems usually measure enrollment by age and sex, while household surveys can measure whether children and young people are attending. Neither source is perfect on its own. Administrative counts may have coverage gaps or depend on a separate population denominator; household surveys arrive less often and use sampling. UNESCO’s current model brings information from multiple sources together to create more coherent national, regional, and global series. [UNESCO]
How the 2026 Estimates Are Produced
The current out-of-school estimates use a statistical modeling approach developed by the UNESCO Institute for Statistics and the GEM Report team. UNESCO states that the newer model raised the share of countries represented in out-of-school estimates from 62% to 98%. [UNESCO]
- Administrative enrollment records provide student counts by age and sex where national reporting systems supply them.
- Household surveys provide attendance evidence that can capture participation from another angle.
- Population estimates supply the denominator needed to calculate rates for official school-age groups.
- Statistical modeling reconciles sources and fills time-series gaps without treating every missing national observation as a directly observed value.
The distinction between observed and modeled data matters. The large global figures in the 2026 GEM Report are modeled estimates intended to provide coherent coverage. The country table above is a separate UIS-backed indicator series surfaced by the World Bank, and its individual reference years remain visible. Mixing these two products without labeling them would make the data look more synchronized than they are.
Why the Page Says 2026 When the Global Estimate Is for 2024
International education statistics usually carry a reporting lag. Ministries and statistical agencies first collect enrollment or survey data; population series and metadata then need alignment; international databases validate and publish the resulting observations; modeled series may be recalculated after new information arrives. The 2026 GEM Report therefore reports 273 million for 2024. [UNESCO GEM]
The country table shows the same timing issue in a more visible form. Many totals refer to 2024, some to 2025, and others to earlier years. A release date and a reference year answer different questions. “2026 data release” does not mean “2026 observation.”
Recent Data Coverage and Remaining Gaps
Out-of-school rate data have unusually broad country coverage compared with many other education indicators. UNESCO’s 2026 SDG monitoring page reports that indicator 4.1.4 has recent data for nearly 95% of countries. [UNESCO GEM] The modeled VIEW series reports even broader representation after combining available sources. These two percentages describe different aspects of coverage, so they should not be treated as interchangeable.
Some individual country rows still lack a current total in the UIS-backed primary-age series. Others rely on older reference years. That does not justify estimating a value from neighboring countries, a later enrollment rate, or a regional average. Missing remains missing until a supported observation or modeled estimate is available for the exact indicator.
Enrollment Growth and Out-of-School Numbers Can Move Differently
Global enrollment has expanded even while the recent out-of-school trend has flattened. UNESCO reports 1.4 billion students enrolled in primary and secondary education in 2024, 327 million more than in 2000. Over the same long period, the out-of-school population first fell sharply and later stopped declining. [UNESCO GEM]
Completion indicators also tell a different story from out-of-school status. Between 2000 and 2024, global completion rose from 77% to 88% in primary, from 60% to 78% in lower secondary, and from 37% to 61% in upper secondary. [UNESCO GEM] A system can therefore improve progression and completion among enrolled learners without producing the same pace of decline in the total population outside school.
Long-Term Country Progress Is Uneven but Measurable
The global plateau does not mean every country followed the same path. The 2026 GEM Report identifies countries that reduced out-of-school rates by at least 80% since 2000: Madagascar and Togo for primary-age children, Morocco and Viet Nam for lower-secondary-age adolescents, and Georgia and Türkiye for upper-secondary-age youth. [UNESCO GEM]
These examples also show why the education level must remain attached to every comparison. A country’s primary-age trend does not automatically describe its upper-secondary trend. The age group, level, indicator form, and reference year all belong to the statistic.
The 2030 Benchmark
National SDG 4 benchmark targets provide a forward-looking comparison with the present estimates. UNESCO reports that, based on countries’ own national benchmark targets, 84 million children could still be out of school in 2030. [UNESCO GEM] This is a benchmark-based outlook rather than a current headcount, so it should remain separate from the 273 million estimate for 2024.
The data distinction is simple but essential: 273 million describes the modeled global out-of-school population for 2024; country rows carry their own observation years; and 84 million belongs to a 2030 benchmark outlook. Keeping those time references visible makes country comparisons more accurate and prevents a publication year from being mistaken for a measurement year.
document.addEventListener(“DOMContentLoaded”, function () { var chartJsUrl = “https://cdn.jsdelivr.net/npm/chart.js@4.5.1/dist/chart.umd.min.js”; var chartJsScriptId = “edu-chartjs-cdn”; var chartInstances = [];function formatNumber(value) { return new Intl.NumberFormat(“en-US”).format(value); }function formatCompact(value) { return new Intl.NumberFormat(“en-US”, { notation: “compact”, maximumFractionDigits: 1 }).format(value); }function formatPercent(value) { return new Intl.NumberFormat(“en-US”, { maximumFractionDigits: 1 }).format(value) + “%”; }function formatUSD(value) { return “$” + new Intl.NumberFormat(“en-US”, { maximumFractionDigits: 0 }).format(value); }function updateReadout(readoutId, text) { var readout = document.getElementById(readoutId); if (readout) { readout.textContent = text; } }function setChartFallback() { var readouts = document.querySelectorAll(“.edu-chart-readout”); readouts.forEach(function (readout) { readout.textContent = “Interactive chart library could not be loaded.”; }); }function loadChartJs(callback) { if (typeof Chart !== “undefined”) { callback(); return; }var existingScript = document.getElementById(chartJsScriptId); if (existingScript) { existingScript.addEventListener(“load”, function () { if (typeof Chart !== “undefined”) { callback(); } else { setChartFallback(); } }); existingScript.addEventListener(“error”, setChartFallback); return; }var script = document.createElement(“script”); script.id = chartJsScriptId; script.src = chartJsUrl; script.async = true; script.onload = function () { if (typeof Chart !== “undefined”) { callback(); } else { setChartFallback(); } }; script.onerror = setChartFallback; document.head.appendChild(script); }function makeChart(options) { var canvas = document.getElementById(options.canvasId); if (!canvas || typeof Chart === “undefined”) { return; }var chart = new Chart(canvas, { type: options.type, data: { labels: options.labels, datasets: options.datasets }, options: { responsive: true, maintainAspectRatio: false, animation: { duration: 700 }, interaction: { mode: “nearest”, intersect: true }, plugins: { legend: { display: options.showLegend }, tooltip: { callbacks: { label: function (context) { var label = context.dataset.label ? context.dataset.label + “: ” : “”; var value = context.parsed.y;if (options.valueFormat === “percent”) { return label + formatPercent(value); }if (options.valueFormat === “usd”) { return label + formatUSD(value); }if (options.valueFormat === “compact”) { return label + formatCompact(value); }return label + formatNumber(value); } } } }, scales: { y: { beginAtZero: options.beginAtZero, ticks: { callback: function (value) { if (options.valueFormat === “percent”) { return formatPercent(value); }if (options.valueFormat === “usd”) { return formatUSD(value); }if (options.valueFormat === “compact”) { return formatCompact(value); }return formatNumber(value); } } } }, onHover: function (event, elements, chartInstance) { if (!elements.length) { return; }var element = elements[0]; var label = chartInstance.data.labels[element.index]; var dataset = chartInstance.data.datasets[element.datasetIndex]; var rawValue = dataset.data[element.index]; var formattedValue = rawValue;if (options.valueFormat === “percent”) { formattedValue = formatPercent(rawValue); } else if (options.valueFormat === “usd”) { formattedValue = formatUSD(rawValue); } else if (options.valueFormat === “compact”) { formattedValue = formatCompact(rawValue); } else { formattedValue = formatNumber(rawValue); }updateReadout(options.readoutId, label + “: ” + formattedValue); }, onClick: function (event, elements, chartInstance) { if (!elements.length) { return; }var element = elements[0]; var label = chartInstance.data.labels[element.index]; var dataset = chartInstance.data.datasets[element.datasetIndex]; var rawValue = dataset.data[element.index]; var formattedValue = rawValue;if (options.valueFormat === “percent”) { formattedValue = formatPercent(rawValue); } else if (options.valueFormat === “usd”) { formattedValue = formatUSD(rawValue); } else if (options.valueFormat === “compact”) { formattedValue = formatCompact(rawValue); } else { formattedValue = formatNumber(rawValue); }updateReadout(options.readoutId, label + “: ” + formattedValue); } } });chartInstances.push(chart); }function initCharts() { makeChart({ canvasId: “out-of-school-level-chart”, readoutId: “out-of-school-level-readout”, type: “bar”, labels: [“Primary-school age”, “Lower-secondary age”, “Upper-secondary age”], datasets: [{ label: “Out of school”, data: [79000000, 64000000, 130000000] }], valueFormat: “compact”, beginAtZero: true, showLegend: false });makeChart({ canvasId: “out-of-school-country-chart”, readoutId: “out-of-school-country-readout”, type: “bar”, labels: [“Nigeria”, “Pakistan”, “Ethiopia”, “Angola”, “Tanzania”, “Niger”, “Philippines”, “Burkina Faso”, “South Sudan”, “Mali”], datasets: [{ label: “Primary-age children out of school”, data: [9070702, 5434996, 4236782, 2281912, 2011380, 1876779, 1616165, 1363187, 1199083, 1186892] }], valueFormat: “compact”, beginAtZero: true, showLegend: false });makeChart({ canvasId: “out-of-school-rate-chart”, readoutId: “out-of-school-rate-readout”, type: “line”, labels: [“2000”, “2015”, “2024”], datasets: [{ label: “Global out-of-school rate”, data: [27, 17, 17], tension: 0.2 }], valueFormat: “percent”, beginAtZero: true, showLegend: false }); }function initCountryTable() { var search = document.getElementById(“oos-country-search”); var yearFilter = document.getElementById(“oos-year-filter”); var table = document.getElementById(“oos-country-table”); var count = document.getElementById(“oos-country-count”);if (!search || !yearFilter || !table || !count) { return; }var rows = Array.prototype.slice.call(table.querySelectorAll(“tbody tr”));function applyFilters() { var query = search.value.trim().toLowerCase(); var yearMode = yearFilter.value; var visible = 0;rows.forEach(function (row) { var country = row.cells[0].textContent.toLowerCase(); var valueText = row.cells[1].textContent.trim(); var year = parseInt(row.cells[2].textContent, 10); var matchesQuery = !query || country.indexOf(query) !== -1; var matchesYear = true;if (yearMode === “2023-2025”) { matchesYear = year >= 2023 && year = 2020 && year <= 2022; } else if (yearMode === "before-2020") { matchesYear = year < 2020; } else if (yearMode === "na") { matchesYear = valueText === "Data not available"; }var show = matchesQuery && matchesYear; row.hidden = !show;if (show) { visible += 1; } });count.textContent = visible + " rows shown"; }search.addEventListener("input", applyFilters); yearFilter.addEventListener("change", applyFilters); applyFilters(); }initCountryTable(); loadChartJs(initCharts); });