The 10 most populous countries on a world map, 2025
India and China each have more than 1.4 billion people. Circles sized by population sit on the Equal Earth projection set in geo.projection.
{
"type": "map",
"geo": {
"features": "\u0000demo-fold:0",
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": [
{
"country": "India",
"population": 1463000000,
"lon": 79.59,
"lat": 22.87
},
{
"country": "China",
"population": 1410000000,
"lon": 103.33,
"lat": 36.73
},
{
"country": "United States",
"population": 347000000,
"lon": -98.97,
"lat": 40.2
},
{
"country": "Indonesia",
"population": 285000000,
"lon": 114.09,
"lat": -0.33
},
{
"country": "Pakistan",
"population": 255000000,
"lon": 69.16,
"lat": 29.95
},
{
"country": "Nigeria",
"population": 240000000,
"lon": 7.94,
"lat": 9.53
},
{
"country": "Brazil",
"population": 217000000,
"lon": -53.28,
"lat": -10.64
},
{
"country": "Bangladesh",
"population": 175000000,
"lon": 90.3,
"lat": 23.82
},
{
"country": "Russia",
"population": 144000000,
"lon": 95.89,
"lat": 65.99
},
{
"country": "Ethiopia",
"population": 135000000,
"lon": 39.64,
"lat": 8.59
}
],
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
}
{
"type": "map",
"geo": {
"features": {/* TopoJSON, 182 arcs; Copy includes it */},
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": [
{
"country": "India",
"population": 1463000000,
"lon": 79.59,
"lat": 22.87
},
{
"country": "China",
"population": 1410000000,
"lon": 103.33,
"lat": 36.73
},
{
"country": "United States",
"population": 347000000,
"lon": -98.97,
"lat": 40.2
},
{
"country": "Indonesia",
"population": 285000000,
"lon": 114.09,
"lat": -0.33
},
{
"country": "Pakistan",
"population": 255000000,
"lon": 69.16,
"lat": 29.95
},
{
"country": "Nigeria",
"population": 240000000,
"lon": 7.94,
"lat": 9.53
},
{
"country": "Brazil",
"population": 217000000,
"lon": -53.28,
"lat": -10.64
},
{
"country": "Bangladesh",
"population": 175000000,
"lon": 90.3,
"lat": 23.82
},
{
"country": "Russia",
"population": 144000000,
"lon": 95.89,
"lat": 65.99
},
{
"country": "Ethiopia",
"population": 135000000,
"lon": 39.64,
"lat": 8.59
}
],
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
}import { GeoMap } from "@opendata-ai/openchart-react";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": "\u0000demo-fold:0",
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": "\u0000demo-fold:1",
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
export function Example() {
return <GeoMap spec={spec} />;
}
import { GeoMap } from "@opendata-ai/openchart-react";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": {/* TopoJSON, 182 arcs; Copy includes it */},
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": [/* 10 rows, as in the Spec tab; Copy includes them */],
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
export function Example() {
return <GeoMap spec={spec} />;
}
<script setup lang="ts">
import { GeoMap } from "@opendata-ai/openchart-vue";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": "\u0000demo-fold:0",
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": "\u0000demo-fold:1",
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
</script>
<template>
<GeoMap :spec="spec" />
</template>
<script setup lang="ts">
import { GeoMap } from "@opendata-ai/openchart-vue";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": {/* TopoJSON, 182 arcs; Copy includes it */},
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": [/* 10 rows, as in the Spec tab; Copy includes them */],
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
</script>
<template>
<GeoMap :spec="spec" />
</template>
<script lang="ts">
import { GeoMap } from "@opendata-ai/openchart-svelte";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": "\u0000demo-fold:0",
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": "\u0000demo-fold:1",
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
</script>
<GeoMap {spec} />
<script lang="ts">
import { GeoMap } from "@opendata-ai/openchart-svelte";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": {/* TopoJSON, 182 arcs; Copy includes it */},
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": [/* 10 rows, as in the Spec tab; Copy includes them */],
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
</script>
<GeoMap {spec} />
import { createGeoMap } from "@opendata-ai/openchart-vanilla";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": "\u0000demo-fold:0",
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": "\u0000demo-fold:1",
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
const container = document.getElementById("chart");
if (!container) throw new Error('Add <div id="chart"></div> to the page first.');
createGeoMap(container, spec);
import { createGeoMap } from "@opendata-ai/openchart-vanilla";
import type { GeoMapSpec } from "@opendata-ai/openchart-core";
import "@opendata-ai/openchart-core/styles.css";
const spec: GeoMapSpec = {
"type": "map",
"geo": {
"features": {/* TopoJSON, 182 arcs; Copy includes it */},
"projection": "equalEarth"
},
"data": [],
"encoding": {
"key": {
"field": "id",
"type": "nominal"
}
},
"points": {
"data": [/* 10 rows, as in the Spec tab; Copy includes them */],
"longitude": {
"field": "lon",
"type": "quantitative"
},
"latitude": {
"field": "lat",
"type": "quantitative"
},
"size": {
"field": "population",
"type": "quantitative",
"title": "Population"
},
"key": {
"field": "country",
"type": "nominal"
},
"tooltip": [
{
"field": "country",
"type": "nominal",
"title": "Country"
},
{
"field": "population",
"type": "quantitative",
"title": "Population",
"format": ",.0f"
}
]
},
"chrome": {
"title": "India and China each hold more than 1.4 billion people",
"subtitle": "Population of the ten most populous countries, 2025"
}
};
const container = document.getElementById("chart");
if (!container) throw new Error('Add <div id="chart"></div> to the page first.');
createGeoMap(container, spec);