Public
Edited
May 15, 2022
1 fork
Importers
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
sample_iso3 = isoAlphaFlagImage("ZWE") //iso3 or iso2 is OK, rect is returned by default
Insert cell
sample_rect = isoAlphaFlagImage("US", "rect")
Insert cell
sample_circ = isoAlphaFlagImage("US", "circle")
Insert cell
sample_wiki = isoAlphaFlagImage("US", "wiki")
Insert cell
sample_smol = isoAlphaFlagImage("ZW", "wiki", 40); // with width value
Insert cell
sample_furl = isoAlphaFlagURL("ZWE") //URL only
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
defaultwidth = 100
Insert cell
Insert cell
arr = [...a3a2].map(([iso3, iso2]) => ({ iso3:iso3, iso2:iso2, circle:iso2, rect:iso2, wiki: iso2}));
Insert cell
import {isoAlpha3to2, isoAlpha2to3, a3a2, a2a3} from "@mbostock/iso-3166-alpha"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more