Is Bangladesh's development gain keeping pace with its region?
Step 1 — Rank the region, in one request
Human Development Index, Southern Asia
UNDP Human Development Report Office — every country the graph holds inside the Southern Asia region.
Loading…
curl -s -G \
'https://unsd-datacommons.gcp.un-icc.cloud/core/api/v2/observation' \
--data-urlencode 'date=LATEST' \
--data-urlencode 'variable.dcids=undata/undphdro/HDI_hdi' \
--data-urlencode \
'entity.expression=SouthernAsia<-containedInPlace+{typeOf:Country}' \
--data-urlencode 'select=date' \
--data-urlencode 'select=value' \
--data-urlencode 'select=entity'Why this one is clean
HDI is a modelled composite published for all countries on one annual cycle, so a LATEST query returns a single uniform year. Compare that with the homicide ranking, built from national administrative reporting, which spanned fifteen different years. The query is identical; the data generation process is not.
Step 2 — The axis decision, made in the open
Maternal mortality ratio
SDG 3.1.1, deaths per 100,000 live births. A magnitude, so this one gets a zero baseline.
Loading…
Read with care. This indicator is only published as a female-disaggregated series — its identifier carries .SEX--F and the bare undata/sdg/SH_STA_MORT returns nothing at all. A reasonable guess at the “total” series would have produced an empty chart and no explanation; this is why the Prompt Lab lists the resolved identifiers rather than just the names.
Access to electricity (% of population)
SDG 7.1.1. A bounded share approaching a ceiling — shown from zero.
Loading…
Individuals using the internet (% of population)
SDG 17.8.1 / ITU. The same units as the panel beside it, so the two are directly comparable.
Loading…
Why these are two charts and not one
Electricity access and internet use are both percentages, so it is tempting to overlay them. Resist plotting two measures of different scale on one plot with two y-axes: the alignment between the two scales is arbitrary, and the chart will invent a relationship that is not in the data. Two panels sharing an axis definition — as here — let the reader make the comparison without being led into one.
Step 3 — The indicator with almost no data
Population below the international poverty line (%)
SDG 1.1.1. Four countries, and between two and ten observations each across four decades.
Loading…
Read with care. These lines connect survey years that are up to a decade apart, and the straight segments between them are drawn by the chart, not measured by anyone. South Sudan has two observations in total — 2009 and 2016. A trend line through two points is an illustration, not evidence. Where survey coverage is this thin, the table view is the more honest presentation, and it is one click away on every panel here.
Step 4 — From one indicator to a goal
# the targets under Goal 1
curl -s -G \
'https://unsd-datacommons.gcp.un-icc.cloud/core/api/v2/node' \
--data-urlencode 'nodes=undata/g/sdgf/goal-1' \
--data-urlencode 'property=<-specializationOf'
# then the indicators under a target
curl -s -G \
'https://unsd-datacommons.gcp.un-icc.cloud/core/api/v2/node' \
--data-urlencode 'nodes=undata/g/sdgf/target-1-1' \
--data-urlencode 'property=<-specializationOf'The hierarchy is four levels deep: goal → target → indicator → the dimension-sliced variants that end in a leaf you can actually fetch. Walking it is the reliable way to answer “what does the UN actually measure for this goal?” — as opposed to what you assumed it measures.
The same traversal works from the agency side: undata/g/who, undata/g/ilo, undata/g/unicef and the rest each open into their own indicator trees. The catalogue lists all sixteen with their live counts.
What this case leaves you with
.SEX--F. Always confirm the identifier from a resolver result or a graph walk rather than constructing it from the pattern.