A story · tabelline 0.2
Islands of the Mediterranean
The Mediterranean has thousands of islands, and Wikipedia lists 195 of them by area, from Sicily down to islands of 5.5 km². This is a tour of them in tables: their shapes and sizes, who ruled them, how they live now, how people get there, and when to go.
Green cards like this one are about how the tables are made. Every table here is made with tabelline 0.2: this story uses what 0.2 added that the FOSDEM story does not, and a new kind of nanoplot made for it, the shape. The data was gathered and shaped with nanuq, Polars for Nim, in a story of its own, The islands' data, made with nanuq; this page only reads its CSV files. Show code under a table opens the Nim that made it. The green cards can be skipped: the rest of the text is about the islands.
Qu'est-ce que la Méditerranée ? Mille choses à la fois.
What is the Mediterranean? A thousand things at once, wrote Fernand Braudel, the historian who spent his life on this sea, in La Méditerranée (1977)1, a later and shorter book. Not one landscape, he went on, but countless landscapes; in his great book of 1949, The Mediterranean and the Mediterranean World in the Age of Philip II, it is not one sea but a complex of seas, full of islands. Braudel looked at it in three times: the slow time of the land, the sea and the climate, the long time of states, economies and peoples, and the quick time of events. The tables below follow him in three parts, each with the colour of its circles: first the islands' shapes, then who ruled them and how they live, then getting there and when to go, where events show up as a dip in a line.
Braudel is the first of the voices that guide this story: along the way we quote passages from books about the Mediterranean and its islands (Matvejević, The Passenger2, Ramondino, Deleuze, Lawrence, Anedda), and the tables answer them. Pietro suggested some of the books, Claude found the others, and each passage was checked against its source. They are all listed under To read more, at the end. The page has a look of its own, the Minoan one, after the frescoes of Crete and Thera, chosen in rounds from eighteen Mediterranean sources in Designing a Mediterranean look; the switch at the top goes back to Munari, the plain look of the site. The photos over the headings were chosen as the books were: Claude gathered openly licensed pictures for each section, Pietro picked one, and each is credited under it; all of them, with the ones left out, are in Photos of the Mediterranean, by the story.
Braudel's complex of seas, west and east: the 35 main islands of this story in blue, with their names, and the other 160 a dot in the colour of the circles.
The main division is in the middle. A shallow ridge from Sicily to Tunisia, under the Strait of Sicily, splits the sea in two: the western basin, about 850,000 km², and the eastern one, twice as large, 1.65 million. The east is the deeper, with the deepest point of the sea, the Calypso Deep, 5,267 m off Pylos, and the older: some geologists see in its Ionian basin what is left of the Tethys, the ocean before this sea. The Adriatic belongs to the east, but it is drawn on the western map, where it fits. For the Greeks the Pillars of Hercules closed the sea at Gibraltar; in 2002 the journalist Sergio Frau argued that the earliest Greeks set them at the Strait of Sicily, between the two halves, a hypothesis that no ancient source states, and that remains speculative.
The dashed lines are the limits of the seas, as the International Hydrographic Organization drew them in 1953; the table of All 195 counts the islands sea by sea. The names are much older than the lines. The Tyrrhenian is the sea of the Tyrrhenians, the Greeks' name for the Etruscans, and the Ligurian the sea of the Ligures; the Adriatic is named after Adria, an Etruscan town near the mouth of the Po. The ancients explained the Aegean in several ways, the best known Aegeus, the father of Theseus, who threw himself into it; where the Ionian comes from is not known, though Aeschylus tied it to Io, who swam across it. The Sea of Marmara is named after its largest island, rich in marble, mármaron in Greek.
The maps are not tables: they are two drawings made with the data, by map.nim, from OpenStreetMap's coast and the islands' places on Wikidata, and the limits of the seas from Marine Regions (CC BY 4.0). Where each name goes was written by Claude, the AI that wrote this story. Their colours are the page's, so they change with its look.
How many there are
No one knows how many islands the Mediterranean has: it depends on how small an island may be. The sea holds more than 10,000, by an estimate of 2022, and 2,217 of them are larger than a hectare, a square of 100 m a side, about one and a half football pitches. Each country counts its own, by its own rules. Greece has somewhere between 1,200 and 6,000, by the smallest size counted, and people live on 166 to 227 of them. Croatia's statistics office counts 1,185: 718 islands, 48 of them lived on, 389 rocks and 78 reefs. Italy has nearly 450, with those of its lakes and rivers, and Turkey about 500, in four seas and its lakes.
This story's 195 are the islands Wikipedia's list gives an area for, from Sicily down to Ilovik and Petalas, 5.5 km² each. Its 35 main islands are the largest of them, down to Elba, so that the last two are Malta, an island that is a country, and Elba, the largest of the Tuscan islands.
The end of the list is not rocks, then, but small islands with a story each. Levanzo, 5.8 km², has 208 people and the Grotta del Genovese, a cave with Neolithic paintings. Tavolara is one limestone mountain off Sardinia, where a handful of families live; in 1836 the king of Sardinia gave it, as a kingdom of make-believe, to the Bertoleoni family. Veli Brijun was Tito's summer residence from 1947 to 1979, where he received heads of state, and is now a national park. Sazan, Albania's largest island, is a military zone. Petalas, the last, is the largest private island of Greece, with 4,000 olive trees and nobody living there.
Counted from OpenStreetMap's coastline, which draws every islet, the sea has 2,337 islands of a hectare or more, near the estimate: on the map, the 195 of the list in blue and the other 2,142 a dot in the colour of the circles.
Here they are by country, with the 195 of the list among them:
| Islands by country | |||||
|---|---|---|---|---|---|
| every island of the Mediterranean | |||||
| islands | area, km2 | population2 | of its land | ||
| all1 | listed | ||||
| Italy | 198 | 27 | 50,863 | 6,840,215 | 1/6 |
| Greece | 871 | 101 | 25,262 | 1,633,388 | 1/5 |
| Cyprus | 11 | 1 | 9,251 | 1,300,936 | 1 |
| France | 77 | 4 | 8,714 | 322,230 | 0 |
| Spain | 118 | 5 | 5,036 | 1,051,463 | <1/100 |
| Croatia | 604 | 41 | 3,310 | 123,952 | 1/9 |
| Tunisia | 76 | 4 | 732 | 139,544 | <1/100 |
| Türkiye | 303 | 9 | 648 | 27,886 | <1/100 |
| Malta | 7 | 2 | 316 | 446,550 | 1 |
| Egypt | 6 | 0 | 22 | — | <1/100 |
| Albania | 9 | 1 | 7 | — | <1/100 |
| Libya | 9 | 0 | 5 | — | <1/100 |
| Algeria | 28 | 0 | 2 | — | <1/100 |
| total | 2,317 | 195 | 104,169 | 11,886,164 | |
| 1 Islands of a hectare or more; the area and the people are those of every island, of any size. | |||||
| 2 From Wikipedia's list for its 195 islands, and from Wikidata for the others, where it has a count: most small islands have none, and few people. | |||||
| Every island: OpenStreetMap's land polygons (© OpenStreetMap contributors, ODbL), not the Peloponnese and Kassandra, cut off by canals, nor islands in lakes; the country from Natural Earth; Wikipedia, List of islands in the Mediterranean (area, population); Wikidata. Nine other countries have islets under 1 km² in all. | |||||
let every = story("countries.csv")
let d = every.keep(proc (i: int): bool = every["km2", i].toFloat >= 1)
.withColumn("share", proc (i: int): Value =
toValue(every["km2", i].toFloat / countryKm2[$every["code", i]]))
let t = tabella(d, rownameCol = "code", locale = lang):
tabHeader tr"Islands by country", tr"every island of the Mediterranean"
optCssTheme()
colsHide ["islands", "peopled", "main"]
fmtCountry "code"
textTransform tr, loc.stub()
fmtInteger ["hectare", "listed", "km2", "people"]
subZero "people", zeroText = "—"
tabOptions(tableFontSize = "14px", dataRowPaddingHorizontal = "3px", columnLabelsPaddingHorizontal = "3px")
fmtFraction "share", accuracy = "low"
subSmallVals "share", threshold = 0.01, smallPattern = "<1/100"
tabSpanner tr"islands", ["hectare", "listed"]
colsLabel:
hectare: tr"all"
listed: tr"listed"
km2: tr"area, {{km^2}}"
people: tr"population"
share: tr"of its land"
grandSummaryRows:
total: agg.sum
columns = ["hectare", "listed", "km2", "people"]
missingText = ""
fmtInteger(sepMark = localeMarks(lang).sep)
textTransform tr, loc.grandSummaryStub()
tabFootnote tr"Islands of a hectare or more; the area and the people are those of every island, of any size.",
loc.columnLabels(cols("hectare"))
tabFootnote tr"From Wikipedia's list for its 195 islands, and from Wikidata for the others, where it has a count: most small islands have none, and few people.",
loc.columnLabels(cols("people"))
tabSourceNote md(tr"Every island: OpenStreetMap's land polygons (© [OpenStreetMap](https://www.openstreetmap.org/copyright) contributors, ODbL), not the Peloponnese and Kassandra, cut off by canals, nor islands in lakes; the country from [Natural Earth](https://www.naturalearthdata.com/); Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean) (area, population); Wikidata. Nine other countries have islets under 1 km² in all.")
nbTable tThis table counts every island, not only the list's: extract.nim
takes each of OpenStreetMap's land polygons in the sea and finds its country, and
process.nim
adds them up by country, with nanuq. tabSpanner puts the two counts under one label, and
fmtFraction writes the share again, as in the table of the main islands.
Italy has the most land on islands, a sixth of the country, almost all of it Sicily and Sardinia; Greece has the most islands, 871 of a hectare or more, and a fifth of its land. Croatia has 604, more than Italy, France and Spain together, and they are a seventeenth of its land. Cyprus and Malta are islands and nothing else.
Predrag Matvejević's Mediterranean Breviary (1987)3 opens with a choice:
Scegliamo innanzitutto un punto di partenza: riva o scena, porto o evento, navigazione o racconto.
First of all, let us choose a starting point: a shore or a scene, a port or an event, a voyage or a tale. This story starts from an island: the largest of the Mediterranean, in one row: its outline, how big it is, how many live there, and how high it goes.
| Sicily | ||||
|---|---|---|---|---|
| area, km2 | population | highest, m | ||
| Sicily | 25,834 | 5,010,001 | 3,357 | |
| Wikipedia, List of islands in the Mediterranean; Wikidata; the outline © OpenStreetMap contributors (ODbL). | ||||
let sicily = islands.keep(proc (i: int): bool = islands["title", i] == "Sicily")
.withColumn("shape", proc (i: int): Value = islands.outline(0))
let t = tabella(sicily, rownameCol = "island", locale = lang):
tabHeader tr"Sicily"
optCssTheme()
colsHide everything()
colsUnhide ["shape", "km2", "population", "elevation"]
colsMove ["shape"], after = "island"
fmtNanoplot "shape", plotType = "shape", plotHeight = "4.5em", options = sea
fmtInteger ["km2", "population", "elevation"]
colsLabel:
population: tr"population"
shape: ""
km2: tr"area, {{km^2}}"
elevation: tr"highest, {{m}}"
tabSourceNote md(tr"Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean); [Wikidata](https://www.wikidata.org/); the outline © [OpenStreetMap](https://www.openstreetmap.org/copyright) contributors ([ODbL](https://opendatacommons.org/licenses/odbl/)).")
nbTable tThe outline is a nanoplot of a new kind, plotType = "shape": the cell holds a record of x and
y (here kilometres east and north of the island's middle), and the shape joins the points in
their order, closes them and fills them, at the same scale across and up. OpenStreetMap's
coastline has 56,300 points around Sicily; the data's extract step kept 120. The units in the labels,
{{km^2}} and {{m}}, are gt's units syntax, new in 0.2: "km²" in HTML and in text.
Sicily is a triangle of 25,834 km² with five million people, and its highest point is Etna, 3,357 m, the highest active volcano in Europe outside the Caucasus.
It is also an island of islands. Eleven of the 195 are around it, all part of Sicily's region: the seven volcanoes of the Aeolian Islands to the north, five of them in the list (Alicudi and Panarea are too small for it); Ustica, alone in the Tyrrhenian; the Egadi, off the western tip; Pantelleria, closer to Tunisia than to Sicily; and Lampedusa, of the Pelagie, the southernmost land of Italy, with Linosa, too small for the list. Malta, 80 km south of Sicily, is not one of them: with Gozo and Comino it is a country of its own.
| Sicily's islands | ||||
|---|---|---|---|---|
| the eleven of the list | ||||
| area, km2 | population | highest, m | ||
| Aeolian Islands | ||||
| Lipari | 37.0 | 10,763 | 602 | |
| Salina | 26.8 | 2,300 | 968 | |
| Vulcano | 20.9 | 715 | 500 | |
| Stromboli | 12.6 | 572 | 926 | |
| Filicudi | 9.5 | 235 | 774 | |
| Egadi Islands | ||||
| Favignana | 19.0 | 4,383 | 314 | |
| Marettimo | 12.0 | 819 | 686 | |
| Levanzo | 5.8 | 208 | 278 | |
| Pelagie Islands | ||||
| Lampedusa | 20.2 | 4,500 | 133 | |
| on their own | ||||
| Pantelleria | 83.0 | 7,729 | 836 | |
| Ustica | 8.7 | 1,302 | 244 | |
| total | 256 | 33,526 | ||
| Wikipedia, List of islands in the Mediterranean (area, population); the highest points from Wikidata and, where it gives the height of the town, from the islands' articles; outlines © OpenStreetMap contributors (ODbL). | ||||
let around = ["Lipari", "Salina Island", "Vulcano", "Stromboli", "Filicudi", "Ustica", "Favignana",
"Marettimo", "Levanzo", "Pantelleria", "Lampedusa"]
let some = islands.keep(proc (i: int): bool = $islands["title", i] in around)
let d = some
.withColumn("shape", proc (i: int): Value = some.outline(i))
.withColumn("group", proc (i: int): Value =
toValue(if some["archipelago", i].isNull: tr"on their own" else: tr($some["archipelago", i])))
let t = tabella(d, rownameCol = "island", groupnameCol = "group", locale = lang):
tabHeader tr"Sicily's islands", tr"the eleven of the list"
optCssTheme()
colsHide everything()
colsUnhide ["shape", "km2", "population", "elevation"]
colsMove ["shape"], after = "island"
rowGroupOrder ["Aeolian Islands", "Egadi Islands", "Pelagie Islands", "on their own"].mapIt(tr(it))
fmtNanoplot "shape", plotType = "shape", plotHeight = "3em", autoscale = true, options = sea
fmtNumber ["km2"], decimals = 1
fmtInteger ["population", "elevation"]
colsLabel:
population: tr"population"
shape: ""
km2: tr"area, {{km^2}}"
elevation: tr"highest, {{m}}"
grandSummaryRows:
total: agg.sum
columns = ["km2", "population"]
missingText = ""
fmtInteger(sepMark = localeMarks(lang).sep)
textTransform tr, loc.grandSummaryStub()
tabSourceNote md(tr"Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean) (area, population); the highest points from Wikidata and, where it gives the height of the town, from the islands' articles; outlines © [OpenStreetMap](https://www.openstreetmap.org/copyright) contributors ([ODbL](https://opendatacommons.org/licenses/odbl/)).")
nbTable tThe islands are grouped by a column made before the table, group: the archipelago, or "on
their own". With autoscale = true every shape is at the scale of the largest, Pantelleria, so
Lampedusa and Lipari can be compared. The table's area keeps a decimal, fmtNumber with
decimals = 1, as the small islands' areas are given to a tenth.
Most of the 195 are small: half of them are under 27 km². The 35 largest, down to Elba, 224 km², the largest of the Tuscan islands, with Malta, the island of a country, just before it, are the main islands of this story, each drawn with its outline.
Ci sono isole che hanno forma di pesci, di delfino, ad esempio o di torpedine, altre che hanno forma di coralli, altre di sirena.
There are islands shaped like fish, a dolphin, say, or a torpedo ray, others shaped like corals, others like a mermaid, wrote Fabrizia Ramondino of Mallorca, in Guerra di infanzia e di Spagna (2001)4.
| The 35 main islands | ||||
|---|---|---|---|---|
| area, km2 | population | country | ||
| Sicily | 25,834 | 5,010,001 | Italy | |
| Sardinia | 24,100 | 1,656,000 | Italy | |
| Cyprus | 9,251 | 1,300,9361 | Cyprus | |
| Corsica | 8,681 | 322,000 | France | |
| Crete | 8,312 | 622,871 | Greece | |
| Euboea | 3,655 | 191,206 | Greece | |
| Mallorca | 3,640 | 846,000 | Spain | |
| Lesbos | 1,630 | 86,436 | Greece | |
| Rhodes | 1,398 | 115,490 | Greece | |
| Chios | 842 | 51,390 | Greece | |
| Cephalonia | 781 | 35,801 | Greece | |
| Menorca | 694 | 87,000 | Spain | |
| Corfu | 592 | 100,853 | Greece | |
| Ibiza | 577 | 111,000 | Spain | |
| Djerba | 523 | 139,544 | Tunisia | |
| Lemnos | 476 | 16,992 | Greece | |
| Samos | 476 | 32,973 | Greece | |
| Naxos | 428 | 17,970 | Greece | |
| Zakynthos | 406 | 40,758 | Greece | |
| Cres | 406 | 3,079 | Croatia | |
| Krk | 406 | 19,383 | Croatia | |
| Brač | 395 | 13,956 | Croatia | |
| Andros | 380 | 9,221 | Greece | |
| Thasos | 379 | 13,765 | Greece | |
| Lefkada | 303 | 22,076 | Greece | |
| Karpathos | 301 | 6,181 | Greece | |
| Hvar | 300 | 11,077 | Croatia | |
| Kos | 290 | 33,388 | Greece | |
| Pag | 285 | 9,059 | Croatia | |
| Gökçeada | 279 | 8,894 | Türkiye | |
| Kythira | 278 | 3,973 | Greece | |
| Korčula | 276 | 15,522 | Croatia | |
| Icaria | 255 | 8,423 | Greece | |
| Malta | 246 | 409,259 | Malta | |
| Elba | 224 | 31,572 | Italy | |
| total | 97,297 | 11,404,049 | ||
| 1 Wikipedia's list gives no population for Cyprus, divided since 1974: 918,100 in the Republic's areas (census 2021) and 382,836 in the north (estimate 2021), from Wikipedia's articles. | ||||
| Wikipedia, List of islands in the Mediterranean (area, population); outlines © OpenStreetMap contributors (ODbL). | ||||
let d = main.withColumn("shape", proc (i: int): Value =
islands.outline(toSeq(0 ..< islands.nrows).filterIt(islands["title", it] == main["title", i])[0]))
let t = tabella(d, rownameCol = "island", locale = lang):
tabHeader tr"The 35 main islands"
optCssTheme()
colsHide everything()
colsUnhide ["shape", "code", "km2", "population"]
colsMove ["shape"], after = "island"
colsMove ["code"], after = "population"
fmtNanoplot "shape", plotType = "shape", plotHeight = "2.4em", options = sea
# the stub's rule moves after the shape, so the name and its outline read as one
tabOptions(stubBorderStyle = "none")
tabStyle style.borders({sRight}, color = tint("--line"), weight = "2px"),
[loc.body(cols("shape")), loc.columnLabels(cols("shape")), loc.grandSummary(cols("shape"))]
fmtCountry "code"
textTransform tr, loc.body(cols("code")) # the country's name in the page's language
fmtInteger ["km2", "population"]
subMissing ["population"], missingText = "—"
colsLabel:
population: tr"population"
shape: ""
code: tr"country"
km2: tr"area, {{km^2}}"
grandSummaryRows:
total: agg.sum
columns = ["km2", "population"]
missingText = ""
fmtInteger(sepMark = localeMarks(lang).sep) # a summary's format does not take the table's locale
textTransform tr, loc.grandSummaryStub()
tabFootnote tr"Wikipedia's list gives no population for Cyprus, divided since 1974: 918,100 in the Republic's areas (census 2021) and 382,836 in the north (estimate 2021), from Wikipedia's articles.", loc.body(cols("population"), 2)
tabSourceNote md(tr"Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean) (area, population); outlines © [OpenStreetMap](https://www.openstreetmap.org/copyright) contributors ([ODbL](https://opendatacommons.org/licenses/odbl/)).")
nbTable tfmtCountry writes a country's name from its code (IT is Italy), from CLDR, so the data keeps
the code. The rule after the stub moves past the shape: tabOptions(stubBorderStyle = "none")
takes it away, and style.borders on the shape's cells draws it again. The total row is
grandSummaryRows, formatted with fmtInteger() in its block. Each shape here is drawn at its
own scale, as large as the cell allows.
Together the 35 are 97,297 km² with 11.4 million people, about as much land, and as many people, as Portugal (92,225 km², 11.4 million in 2025). Sicily alone is a quarter of the land and almost half of the people.
Malta is the most crowded of them by far: 1,664 people on each km², more than eight times Sicily. Cres and Krk have the same area in the list, 405.78 km², but Krk has 19,383 people and Cres 3,079, one for every 13 hectares. Among all the islands where people live, ordered by how many live on each km², Malta is still first, with two islands of the Gulf of Naples after it; at the other end, a few people on a lot of rock, and on Asinara, the old prison island, one (the census of 2001 counted a single man). Sicily, Krk and Cres are shown in their places:
| People on each km² | ||||
|---|---|---|---|---|
| the islands where people live | ||||
| island | population | per km2 | ||
| 1 | Malta | 409,259 | 1,664 | |
| 2 | Ischia | 60,335 | 1,312 | |
| 3 | Capri | 12,200 | 1,173 | |
| 4..16 | ||||
| 17 | Sicily | 5,010,001 | 194 | |
| 18..65 | ||||
| 66 | Krk | 19,383 | 48 | |
| 67..133 | ||||
| 134 | Cres | 3,079 | 8 | |
| 135..156 | ||||
| 157 | Polyaigos | 2 | 0.12 | |
| 158 | Kyra Panagia | 2 | 0.08 | |
| 159 | Asinara | 1 | 0.02 | |
| Wikipedia, List of islands in the Mediterranean: the islands where people live. | ||||
let peopled = islands.keep(proc (i: int): bool = not islands["population", i].isNull and
islands["population", i].toFloat > 0 and islands["km2", i].toFloat > 0)
var d = peopled.withColumn("density", proc (i: int): Value =
toValue(peopled["population", i].toFloat / peopled["km2", i].toFloat))
d = d.withColumn("shape", proc (i: int): Value = d.outline(i))
let order = toSeq(0 ..< d.nrows).sortedByIt(-d["density", it].toFloat)
var sorted = TableData()
for c in d.columns: sorted.addColumn(c.name, order.mapIt(c.values[it]))
var t = tabellaPreview(sorted, topN = 3, bottomN = 3,
moreRows = where($it.title in ["Sicily", "Krk (island)", "Cres (island)"])):
tabHeader tr"People on each km²", tr"the islands where people live"
optCssTheme()
colsHide everything()
colsUnhide ["island", "shape", "population", "density"]
colsMove ["shape"], after = "island"
fmtNanoplot "shape", plotType = "shape", plotHeight = "1.8em", options = sea
fmtInteger ["population", "density"]
fmtNumber "density", rows = where(it["density"].toFloat < 1), decimals = 2
subMissing "shape", missingText = ""
dataColor "density", palette = palette("reds"), domain = (0.0, 1700.0)
colsLabel:
population: tr"population"
shape: ""
density: tr"per {{km^2}}"
tabSourceNote md(tr"Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean): the islands where people live.")
t.locale = lang # tabellaPreview takes no locale
nbTable tThe density is computed before the table, and the rows are put in its order: tabellaPreview
shows the first and the last rows of the data as it is, and with moreRows (new in 0.2, not
from gt) the rows the text talks about, here chosen by their page with where, wherever they
fall; each run of rows left out is a grey row that says which. dataColor colours each density on a
scale from white to red, with the same domain for every row, 0 to 1,700 people a km².
Drawn at their own scale, Malta looks as large as Sicily. With autoscale, every shape takes
the scale of the largest one in the column, and the sizes can be compared: Sicily is a hundred
times Malta. Grouped by country, each with the share of its country's land it is. Alone, an
outline looks like a world of its own; The Passenger's book on Sicily (Iperborea, 2024)5
warns against that look:
Guardando una cartina, un'isola ci dà l'illusione di essere un piccolo mondo a sé. […] Ma si tratta di una mistificazione.
Looking at a map, an island gives us the illusion of being a small world of its own. […] But it is a mystification.
| The main islands by country | ||||
|---|---|---|---|---|
| with all the others | ||||
| area, km2 | of its country | |||
| Italy | Sicily | 25,834 | 7/82 | |
| Sardinia | 24,100 | 2/25 | ||
| Elba | 224 | <1/100 | ||
| other islands | 195 islands | 705 | <1/100 | |
| all | 50,863 | 16/95 | ||
| Cyprus | Cyprus | 9,251 | 1 | |
| other islands | 10 islands | <1 | <1/100 | |
| all | 9,251 | 1 | ||
| France | Corsica | 8,681 | 1/64 | |
| other islands | 76 islands | 33 | <1/100 | |
| all | 8,714 | 1/63 | ||
| Greece | Crete | 8,312 | 6/95 | |
| Euboea | 3,655 | 1/36 | ||
| Lesbos | 1,630 | 1/81 | ||
| Rhodes | 1,398 | 1/94 | ||
| Chios | 842 | <1/100 | ||
| Cephalonia | 781 | <1/100 | ||
| Corfu | 592 | <1/100 | ||
| Lemnos | 476 | <1/100 | ||
| Samos | 476 | <1/100 | ||
| Naxos | 428 | <1/100 | ||
| Zakynthos | 406 | <1/100 | ||
| Andros | 380 | <1/100 | ||
| Thasos | 379 | <1/100 | ||
| Lefkada | 303 | <1/100 | ||
| Karpathos | 301 | <1/100 | ||
| Kos | 290 | <1/100 | ||
| Kythira | 278 | <1/100 | ||
| Icaria | 255 | <1/100 | ||
| other islands | 853 islands | 4,080 | 3/97 | |
| all | 25,262 | 9/47 | ||
| Spain | Mallorca | 3,640 | <1/100 | |
| Menorca | 694 | <1/100 | ||
| Ibiza | 577 | <1/100 | ||
| other islands | 115 islands | 125 | <1/100 | |
| all | 5,036 | <1/100 | ||
| Tunisia | Djerba | 523 | <1/100 | |
| other islands | 75 islands | 209 | <1/100 | |
| all | 732 | <1/100 | ||
| Croatia | Cres | 406 | <1/100 | |
| Krk | 406 | <1/100 | ||
| Brač | 395 | <1/100 | ||
| Hvar | 300 | <1/100 | ||
| Pag | 285 | <1/100 | ||
| Korčula | 276 | <1/100 | ||
| other islands | 598 islands | 1,243 | 2/91 | |
| all | 3,310 | 1/17 | ||
| Turkey | Gökçeada | 279 | <1/100 | |
| other islands | 302 islands | 369 | <1/100 | |
| all | 648 | <1/100 | ||
| Malta | Malta | 246 | 74/95 | |
| other islands | 6 islands | 70 | 2/9 | |
| all | 316 | 1 | ||
| Areas: Wikipedia, List of islands in the Mediterranean; the countries' areas from their articles (France: metropolitan). | ||||
var d = main.withColumn("shape", proc (i: int): Value =
islands.outline(toSeq(0 ..< islands.nrows).filterIt(islands["title", it] == main["title", i])[0]))
d = d.withColumn("share", proc (i: int): Value = toValue(main["km2", i].toFloat / countryKm2[$main["code", i]]))
# each country's other islands, in one row: how many in place of the shape, and their area
let every = story("countries.csv")
var others = newSeq[seq[Value]](d.columns.len)
for j in 0 ..< every.nrows:
let code = $every["code", j]
let mine = toSeq(0 ..< d.nrows).filterIt($d["code", it] == code)
if mine.len == 0: continue
let km2 = every["km2", j].toFloat - mine.mapIt(d["km2", it].toFloat).sum
for c, col in d.columns:
others[c].add (case col.name
of "island": toValue(tr"other islands")
of "shape": toValue($(every["hectare", j].toFloat.int - mine.len) & "\u00A0" & tr"islands")
of "km2": toValue(km2)
of "share": toValue(km2 / countryKm2[code])
else: col.values[mine[0]])
var all = TableData()
for c, col in d.columns: all.addColumn(col.name, col.values & others[c])
let t = tabella(all, rownameCol = "island", groupnameCol = "country", rowGroupAsColumn = true, locale = lang):
tabHeader tr"The main islands by country", tr"with all the others"
optCssTheme()
colsHide everything()
colsUnhide ["shape", "km2", "share"]
colsMove ["shape"], after = "island"
rowGroupOrder ["Italy", "Cyprus", "France", "Greece", "Spain", "Tunisia", "Croatia", "Turkey", "Malta"].mapIt(tr(it))
fmtNanoplot "shape", rows = where(it["island"] != tr"other islands"), plotType = "shape",
plotHeight = "3em", autoscale = true, options = sea
fmtInteger ["km2"]
# a fraction, or "<1/100" for the small ones, which as fractions would be 0: one format, so
# the summary rows, which take their column's format, write it too
fmt "share", proc (v: Value): string =
if v.toFloat < 0.01: "<1/100" else: formatFraction(v.toFloat, accuracy = "med")
subSmallVals "km2", threshold = 1, smallPattern = "<1"
colsLabel:
shape: ""
km2: tr"area, {{km^2}}"
share: tr"of its country"
summaryRows:
all: agg.sum
columns = ["km2", "share"]
missingText = ""
textTransform tr, loc.summaryStub()
tabSourceNote md(tr"Areas: Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean); the countries' areas from their articles (France: metropolitan).")
nbTable trowGroupAsColumn = true puts the country in a column of its own, left of the islands, instead
of a row above them. Each country's other islands are a row added to the data before the table,
with their count where the shape goes: fmtNanoplot takes rows, and draws only the islands.
The share is a fraction with up to two digits below (formatFraction with accuracy = "med"):
Sicily is 7/82 of Italy, about a twelfth. Under a hundredth it is "<1/100", which as a fraction
would be 0; written in one fmt, so that the rows of summaryRows, which take the last format
of their column, write it too (subSmallVals would leave them out). summaryRows adds up each
country, so its "all" row has every island.
Greece has eighteen of the 35, and together they are a sixth of its land; Croatia has six. Cyprus and Malta are the islands of their countries: Cyprus all of it, Malta the larger of its three.
Non c'è alcuna unità oggettiva nell'insieme delle isole, there is no objective unity in the set of islands, wrote Gilles Deleuze in L'isola deserta6. The whole list, every island with its data, is long. One way into it is the sea each island is in. The International Hydrographic Organization drew the limits of the seas in 1953, in Limits of Oceans and Seas: the Mediterranean is a western and an eastern basin, and inside them eight seas with names of their own. Sea by sea, from west to east, with the largest island of each:
| The 195, sea by sea | ||||||
|---|---|---|---|---|---|---|
| from west to east | ||||||
| islands | the largest | km2 | people | |||
| Balearic | 5 | Mallorca | 🇪🇸 | 5,010 | 1,051,461 | |
| Western Basin | 8 | Corsica | 🇫🇷 | 8,919 | 340,405 | |
| Tyrrhenian | 21 | Sardinia | 🇮🇹 | 24,645 | 1,798,293 | |
| Adriatic | 43 | Cres | 🇭🇷 | 3,142 | 123,628 | |
| Ionian | 13 | Sicily | 🇮🇹 | 28,115 | 5,216,618 | |
| Aegean | 89 | Crete | 🇬🇷 | 21,600 | 1,319,913 | |
| Eastern Basin | 12 | Cyprus | 🇨🇾 | 11,826 | 2,015,458 | |
| Marmara | 4 | Marmara | 🇹🇷 | 169 | — | |
| total | 195 | 103,426 | 11,865,776 | |||
| Each island is in the sea around most of its coast, as the IHO draws them (Limits of Oceans and Seas, 1953, from Marine Regions, CC BY 4.0); the islands and their areas: Wikipedia, List of islands in the Mediterranean. | ||||||
const seas = ["Balearic Sea", "Mediterranean Sea - Western Basin", "Tyrrhenian Sea", "Adriatic Sea",
"Ionian Sea", "Aegean Sea", "Mediterranean Sea - Eastern Basin", "Sea of Marmara"]
## the IHO's seas that hold one of the 195, from west to east
var rows: seq[tuple[sea: string, n: int, largest: string, shape: Value, code: string,
km2: float, people: float]]
for name in seas:
let mine = toSeq(0 ..< islands.nrows).filterIt(islands["iho_sea", it] == name)
let big = mine[0] # the list is by area
rows.add (tr(name.replace("Mediterranean Sea - ", "").replace(" Sea", "").replace("Sea of ", "")), mine.len, $islands["island", big], islands.outline(big), $islands["code", big],
mine.mapIt(islands["km2", it].toFloat).sum,
mine.mapIt(if islands["population", it].isNull: 0.0 else: islands["population", it].toFloat).sum)
let t = tabella(rows, rownameCol = "sea", locale = lang):
tabHeader tr"The 195, sea by sea", tr"from west to east"
optCssTheme()
colsMove ["code"], after = "largest"
fmtFlag "code"
fmtNanoplot "shape", plotType = "shape", plotHeight = "1.8em", options = sea
fmtInteger ["km2", "people"]
subZero "people", zeroText = "—"
tabSpanner tr"the largest", ["largest", "code", "shape"]
tabOptions(tableFontSize = "13px", dataRowPaddingHorizontal = "3px", columnLabelsPaddingHorizontal = "3px")
colsLabel:
n: tr"islands"
largest: ""
code: ""
shape: ""
km2: tr"{{km^2}}"
people: tr"people"
grandSummaryRows:
total: agg.sum
columns = ["n", "km2", "people"]
missingText = ""
fmtInteger(sepMark = localeMarks(lang).sep)
textTransform tr, loc.grandSummaryStub()
tabSourceNote md(tr"Each island is in the sea around most of its coast, as the IHO draws them (*Limits of Oceans and Seas*, 1953, from [Marine Regions](https://www.marineregions.org/), CC BY 4.0); the islands and their areas: Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean).")
nbTable tThe data is one row per sea, made before the table from the list, which is in order of area, so
the first island of each sea is its largest. fmtFlag writes a country's code as its flag
(gt's fmt_flag), and tabSpanner puts the largest island's name, flag and outline under one
label. extract.nim
finds each island's sea: it paints the IHO's polygons on a grid of 0.02°, and each island takes
the sea of most of the cells around its coast.
And here they all are, in the order of the list, each at its own scale, with its place and its country's flag: the 35 main islands in blue, the first seven rows, down to Elba; the others in the colour of the circles.
| The 195, each at its own scale | ||||
|---|---|---|---|---|
🇮🇹 1. Sicily | 🇮🇹 2. Sardinia | 🇨🇾 3. Cyprus | 🇫🇷 4. Corsica | 🇬🇷 5. Crete |
🇬🇷 6. Euboea | 🇪🇸 7. Mallorca | 🇬🇷 8. Lesbos | 🇬🇷 9. Rhodes | 🇬🇷 10. Chios |
🇬🇷 11. Cephalonia | 🇪🇸 12. Menorca | 🇬🇷 13. Corfu | 🇪🇸 14. Ibiza | 🇹🇳 15. Djerba |
🇬🇷 16. Lemnos | 🇬🇷 17. Samos | 🇬🇷 18. Naxos | 🇬🇷 19. Zakynthos | 🇭🇷 20. Cres |
🇭🇷 21. Krk | 🇭🇷 22. Brač | 🇬🇷 23. Andros | 🇬🇷 24. Thasos | 🇬🇷 25. Lefkada |
🇬🇷 26. Karpathos | 🇭🇷 27. Hvar | 🇬🇷 28. Kos | 🇭🇷 29. Pag | 🇹🇷 30. Gökçeada |
🇬🇷 31. Kythira | 🇭🇷 32. Korčula | 🇬🇷 33. Icaria | 🇲🇹 34. Malta | 🇮🇹 35. Elba |
🇬🇷 36. Skyros | 🇬🇷 37. Paros | 🇬🇷 38. Tinos | 🇬🇷 39. Samothrace | 🇬🇷 40. Milos |
🇬🇷 41. Kea | 🇬🇷 42. Amorgos | 🇹🇷 43. Marmara | 🇭🇷 44. Dugi Otok | 🇬🇷 45. Kalymnos |
🇹🇳 46. Chergui | 🇮🇹 47. Sant'Antioco | 🇬🇷 48. Ios | 🇭🇷 49. Mljet | 🇬🇷 50. Kythnos |
🇬🇷 51. Astypalaia | 🇬🇷 52. Ithaca | 🇬🇷 53. Skopelos | 🇬🇷 54. Salamis | 🇭🇷 55. Rab |
🇭🇷 56. Vis | 🇬🇷 57. Mykonos | 🇬🇷 58. Syros | 🇬🇷 59. Aegina | 🇪🇸 60. Formentera |
🇮🇹 61. Pantelleria | 🇬🇷 62. Santorini | 🇭🇷 63. Lošinj | 🇬🇷 64. Serifos | 🇬🇷 65. Sifnos |
🇹🇳 66. Gharbi | 🇲🇹 67. Gozo | 🇬🇷 68. Kasos | 🇬🇷 69. Alonissos | 🇬🇷 70. Tilos |
🇭🇷 71. Pašman | 🇭🇷 72. Šolta | 🇬🇷 73. Symi | 🇬🇷 74. Leros | 🇮🇹 75. San Pietro |
🇮🇹 76. Asinara | 🇬🇷 77. Hydra | 🇭🇷 78. Ugljan | 🇬🇷 79. Skiathos | 🇭🇷 80. Lastovo |
🇮🇹 81. Ischia | 🇬🇷 82. Agios Efstratios | 🇬🇷 83. Nisyros | 🇬🇷 84. Sikinos | 🇬🇷 85. Psara |
🇬🇷 86. Anafi | 🇮🇹 87. Lipari | 🇹🇷 88. Bozcaada | 🇬🇷 89. Kimolos | 🇬🇷 90. Antiparos |
🇬🇷 91. Patmos | 🇭🇷 92. Kornat | 🇬🇷 93. Folegandros | 🇬🇷 94. Fourni | 🇬🇷 95. Gavdos |
🇭🇷 96. Čiovo | 🇬🇷 97. Halki | 🇮🇹 98. Salina | 🇭🇷 99. Olib | 🇹🇷 100. Uzunada |
🇬🇷 101. Paxi | 🇬🇷 102. Kalamos | 🇬🇷 103. Kyra Panagia | 🇮🇹 104. Giglio | 🇹🇷 105. Cunda (Alibey) |
🇬🇷 106. Poros | 🇭🇷 107. Molat | 🇭🇷 108. Vir | 🇬🇷 109. Spetses | 🇹🇷 110. Paşalimanı |
🇬🇷 111. Saria | 🇮🇹 112. Vulcano | 🇹🇷 113. Avsa | 🇬🇷 114. Antikythera | 🇮🇹 115. Lampedusa |
🇮🇹 116. La Maddalena | 🇬🇷 117. Meganisi | 🇮🇹 118. Favignana | 🇮🇹 119. Capraia | 🇬🇷 120. Elafonisos |
🇭🇷 121. Murter | 🇬🇷 122. Makronisos | 🇬🇷 123. Irakleia | 🇭🇷 124. Iž | 🇬🇷 125. Gyaros |
🇬🇷 126. Megalonisos Petalion | 🇬🇷 127. Polyaigos | 🇭🇷 128. Unije | 🇬🇷 129. Leipsoi | 🇭🇷 130. Šipan |
🇮🇹 131. Caprera | 🇪🇸 132. Cabrera | 🇬🇷 133. Keros | 🇭🇷 134. Žirje | 🇭🇷 135. Sestrunj |
🇭🇷 136. Silba | 🇭🇷 137. Žut | 🇬🇷 138. Pserimos | 🇬🇷 139. Oinousses | 🇬🇷 140. Peristera |
🇬🇷 141. Rineia | 🇬🇷 142. Agathonisi | 🇬🇷 143. Donoussa | 🇭🇷 144. Prvic (Krk) | 🇮🇹 145. Stromboli |
🇬🇷 146. Dokos | 🇫🇷 147. Porquerolles | 🇬🇷 148. Schiza | 🇭🇷 149. Drvenik Veliki | 🇮🇹 150. Marettimo |
🇬🇷 151. Agistri | 🇬🇷 152. Dia | 🇬🇷 153. Gioura | 🇮🇹 154. Capri | 🇮🇹 155. Montecristo |
🇮🇹 156. Pianosa | 🇬🇷 157. Othonoi | 🇬🇷 158. Thymaina | 🇹🇷 159. Imrali | 🇭🇷 160. Ist |
🇮🇹 161. Filicudi | 🇬🇷 162. Therasia | 🇬🇷 163. Kastellorizo | 🇬🇷 164. Levitha | 🇬🇷 165. Sapientza |
🇫🇷 166. Île du Levant | 🇹🇷 167. Kara Ada | 🇭🇷 168. Premuda | 🇮🇹 169. Ustica | 🇭🇷 170. Plavnik |
🇭🇷 171. Maun | 🇭🇷 172. Šćedro | 🇭🇷 173. Zlarin | 🇬🇷 174. Schoinousa | 🇬🇷 175. Antimilos |
🇬🇷 176. Syrna | 🇬🇷 177. Despotiko | 🇬🇷 178. Ammouliani | 🇮🇹 179. Ponza | 🇬🇷 180. Alimia |
🇹🇳 181. La Galite | 🇭🇷 182. Kaprije | 🇫🇷 183. Port-Cros | 🇬🇷 184. Arkoi | 🇭🇷 185. Sveti Grgur |
🇬🇷 186. Skantzoura | 🇭🇷 187. Biševo | 🇬🇷 188. Kastos | 🇮🇹 189. Tavolara | 🇮🇹 190. Levanzo |
🇬🇷 191. Pano Koufonisi | 🇦🇱 192. Sazan Island | 🇭🇷 193. Veliki Brijun | 🇭🇷 194. Ilovik | 🇬🇷 195. Petalas |
| Wikipedia, List of islands in the Mediterranean, by area. Outlines © OpenStreetMap contributors (ODbL). | ||||
const across = 5
var shapeCols, nameCols, flagCols: array[across, seq[Value]]
var mainCells: seq[(int, int)] # (row, place in the row) of each main island
for i in 0 ..< islands.nrows:
let (row, k) = (i div across, i mod across)
shapeCols[k].add islands.outline(i)
nameCols[k].add toValue($islands["rank", i] & ".\u00A0" & $islands["island", i]) # no break after the number
flagCols[k].add islands["code", i]
if $islands["main", i] == "true": mainCells.add (row, k)
for k in islands.nrows mod across ..< across: # the last row's empty places
if islands.nrows mod across == 0: break
shapeCols[k].add toValue(nil)
nameCols[k].add toValue("")
flagCols[k].add toValue(nil)
var grid = TableData()
for k in 0 ..< across:
grid.addColumn("s" & $k, shapeCols[k])
grid.addColumn("n" & $k, nameCols[k])
grid.addColumn("f" & $k, flagCols[k])
let shapes = toSeq(0 ..< across).mapIt("s" & $it)
let pink = nanoplotOptions(dataBarFillColor = tint("--primary-soft"), dataBarStrokeColor = tint("--primary-text"))
var t = tabella(grid):
tabHeader tr"The 195, each at its own scale"
optCssTheme()
fmtNanoplot shapes, plotType = "shape", plotHeight = "2.2em", options = pink
fmtFlag toSeq(0 ..< across).mapIt("f" & $it)
subMissing shapes, missingText = ""
tabOptions(columnLabelsHidden = true, tableFontSize = "9px", dataRowPadding = "4px",
dataRowPaddingHorizontal = "1px")
tabSourceNote md(tr"Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean), by area. Outlines © [OpenStreetMap](https://www.openstreetmap.org/copyright) contributors ([ODbL](https://opendatacommons.org/licenses/odbl/)).")
for (row, k) in mainCells:
t = t.fmtNanoplot("s" & $k, rows = row, plotType = "shape", plotHeight = "2.2em", options = sea)
for k in 0 ..< across:
t = t.colsMerge(["s" & $k, "n" & $k, "f" & $k], pattern = "{1}<br>{3} {2}")
t = t.colsAlign(alCenter, shapes)
nbTable tA grid is a table too: 195 islands in rows of five, each cell a shape over its flag, place and
name. The data is built for it, a column of shapes, one of names and one of country codes for
each place in the row; fmtFlag turns the codes into flags, and colsMerge puts the three in one
cell with the pattern {1}<br>{3} {2}. fmtNanoplot takes rows,
and a later format of a cell replaces an earlier one, so the main islands are drawn again in
blue, one cell at a time. columnLabelsHidden leaves out the labels a grid does not need.
By country, the islands' sizes make a box plot each, for the countries with three or more: the box holds the middle half of a country's islands, the whiskers the rest, and dots the islands far larger than the others. Each box has its own scale, up to the country's largest island: everywhere most islands are small and a few are very large.
Braudel called the islands isolated worlds and lands of hunger, and then qualified it: isolation is relative, and Sicily, a granary of the whole sea, was no such world. The small islands still are: only 45 of the 195 have an airport or a World Heritage site, and past the hundredth in size only Lampedusa and Kastellorizo have an airport.
| The sizes of the islands, by country | |||
|---|---|---|---|
| the countries with three or more | |||
| islands | their areas, km2 | largest | |
| Greece | 101 | 8,312 | |
| Croatia | 41 | 406 | |
| Italy | 27 | 25,834 | |
| Turkey | 9 | 279 | |
| Spain | 5 | 3,640 | |
| France | 4 | 8,681 | |
| Tunisia | 4 | 523 | |
| all | 191 | ||
| Wikipedia, List of islands in the Mediterranean, by area. | |||
var byCountry: OrderedTable[string, seq[float]]
for i in 0 ..< islands.nrows:
if not islands["country", i].isNull:
byCountry.mgetOrPut($islands["country", i], @[]).add islands["km2", i].toFloat
var rows: seq[tuple[country: string, islands: int, sizes: string, largest: float, total: float]]
for c, ks in byCountry:
if ks.len >= 3: rows.add (c, ks.len, ks.mapIt($it).join(" "), ks.max, ks.sum)
rows.sort(proc (a, b: auto): int = cmp(b.islands, a.islands))
let t = tabella(rows, rownameCol = "country", locale = lang):
tabHeader tr"The sizes of the islands, by country", tr"the countries with three or more"
optCssTheme()
colsHide ["total"]
fmtNanoplot "sizes", plotType = "boxplot", plotHeight = "2em",
options = nanoplotOptions(dataBarFillColor = tint("--secondary-soft"), dataBarStrokeColor = tint("--secondary-text"))
fmtInteger ["largest"]
colsLabel:
islands: tr"islands"
sizes: tr"their areas, {{km^2}}"
largest: tr"largest"
total: tr"together"
grandSummaryRows:
all: agg.sum
columns = ["islands"]
missingText = ""
fmtInteger(sepMark = localeMarks(lang).sep) # a summary's format does not take the table's locale
textTransform tr, loc.grandSummaryStub()
tabSourceNote md(tr"Wikipedia, [List of islands in the Mediterranean](https://en.wikipedia.org/wiki/List_of_islands_in_the_Mediterranean), by area.")
nbTable tA box plot is one of the three nanoplots ported from Great Tables (plotType = "boxplot"); the
cell holds every value, here the areas as a text of numbers. Without autoscale each box has
its own axis. Hover over a box to read its quartiles.
Islands in the middle of a sea are crossroads, and every power of the Mediterranean took its turn. Braudel saw them for the parts they played as much as for their land: lairs of fishermen and pirates, places people left and places people came to. The powers that ruled each main island, a dot each, in the order they came, from the first peoples to the last empires, and the state each island is in today; the islands from the largest:
| Who ruled the main islands | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| from antiquity to today | ||||||||||||||||
| ancient | middle ages | modern | today | |||||||||||||
| first peoples | Greeks | Phoenicians, Carthage | Rome | Byzantium | Arabs | Normans, Franks | Venice | Genoa, Pisa | Aragon, Spain | Knights | Ottomans | France | Britain | Hungary, Austria | ||
| Sicily Sicilian | ● | ● | ● | ● | ● | ● | ● | Italy since 1861 | ||||||||
| Sardinia Sardinian | ● | ● | ● | ● | ● | Italy since 1861 | ||||||||||
| Cyprus Turkish | ● | ● | ● | ● | ● | ● | ● | Cyprus since 1960 | ||||||||
| Corsica Corsican | ● | ● | ● | ● | ● | France since 1768 | ||||||||||
| Crete | ● | ● | ● | ● | ● | ● | Greece since 1913 | |||||||||
| Euboea | ● | ● | ● | ● | ● | Greece since 1832 | ||||||||||
| Mallorca Catalan | ● | ● | ● | ● | ● | ● | Spain since 1715 | |||||||||
| Lesbos | ● | ● | ● | ● | ● | Greece since 1912 | ||||||||||
| Rhodes | ● | ● | ● | ● | ● | Greece since 1947 | ||||||||||
| Chios | ● | ● | ● | ● | ● | Greece since 1912 | ||||||||||
| Cephalonia | ● | ● | ● | ● | ● | ● | Greece since 1864 | |||||||||
| Menorca Catalan | ● | ● | ● | ● | ● | ● | Spain since 1802 | |||||||||
| Corfu | ● | ● | ● | ● | ● | ● | ● | Greece since 1864 | ||||||||
| Ibiza Catalan | ● | ● | ● | ● | Spain since 1715 | |||||||||||
| Djerba Berber | ● | ● | ● | ● | ● | ● | Tunisia since 1956 | |||||||||
| Lemnos | ● | ● | ● | ● | ● | Greece since 1912 | ||||||||||
| Samos | ● | ● | ● | ● | ● | Greece since 1912 | ||||||||||
| Naxos | ● | ● | ● | ● | ● | ● | Greece since 1832 | |||||||||
| Zakynthos | ● | ● | ● | ● | ● | ● | Greece since 1864 | |||||||||
| Cres Chakavian | ● | ● | ● | ● | ● | Croatia since 1991 | ||||||||||
| Krk Chakavian | ● | ● | ● | ● | ● | Croatia since 1991 | ||||||||||
| Brač Chakavian | ● | ● | ● | ● | ● | Croatia since 1991 | ||||||||||
| Andros | ● | ● | ● | ● | ● | Greece since 1832 | ||||||||||
| Thasos | ● | ● | ● | ● | ● | ● | Greece since 1912 | |||||||||
| Lefkada | ● | ● | ● | ● | ● | ● | ● | ● | Greece since 1864 | |||||||
| Karpathos | ● | ● | ● | ● | ● | ● | Greece since 1947 | |||||||||
| Hvar Chakavian | ● | ● | ● | ● | ● | ● | Croatia since 1991 | |||||||||
| Kos | ● | ● | ● | ● | ● | Greece since 1947 | ||||||||||
| Pag Chakavian | ● | ● | ● | ● | ● | Croatia since 1991 | ||||||||||
| Gökçeada | ● | ● | ● | ● | ● | Turkey since 1923 | ||||||||||
| Kythira | ● | ● | ● | ● | ● | ● | ● | Greece since 1864 | ||||||||
| Korčula Chakavian | ● | ● | ● | ● | ● | ● | Croatia since 1991 | |||||||||
| Icaria | ● | ● | ● | ● | ● | ● | Greece since 1912 | |||||||||
| Malta Maltese | ● | ● | ● | ● | ● | ● | ● | ● | ● | ● | Malta since 1964 | |||||
| Elba | ● | ● | ● | ● | ● | Italy since 1861 | ||||||||||
| Each island's history on Wikipedia, read and summed up by Claude, the AI that wrote this story: a dot, not the whole story. | ||||||||||||||||
let h = story("history.csv")
let label = proc (s: string): string = tr(s).replace(" ", "\u00A0") # one line, turned on its side
var d = h.withColumn("island", proc (i: int): Value =
let own = if h["language", i].isNull: "" else: " \n*" & $h["language", i] & "*"
toValue($main["island", mainRow($h["title", i])] & own))
d = d.withColumn("today", proc (i: int): Value = toValue(tr(($h["rulers", i]).split(';')[^1])))
for (power, names, age) in powers:
d = d.withColumn(label(power), proc (i: int): Value =
toValue(if ($h["rulers", i]).split(';').anyIt(it in names): "●" else: ""))
let byAge = proc (age: string): seq[string] = powers.filterIt(it[2] == age).mapIt(label(it[0]))
let stripes = toSeq(0 ..< powers.len).filterIt(it mod 2 == 0).mapIt(label(powers[it][0]))
let t = tabella(d, rownameCol = "island"):
tabHeader tr"Who ruled the main islands", tr"from antiquity to today"
optCssTheme()
colsHide ["title", "page", "joined_how", "language", "rulers", "venice_from", "venice_to", "rule"]
colsMove ["today", "joined"], after = label(powers[^1][0])
fmtMarkdown "island"
colsMerge ["today", "joined"], pattern = tr"{1}<br>since {2}"
colsLabel:
today: tr"today"
colsLabelRotate powers.mapIt(label(it[0]))
colsAlign alCenter, powers.mapIt(label(it[0]))
tabSpanner tr"ancient", byAge("ancient")
tabSpanner tr"middle ages", byAge("medieval")
tabSpanner tr"modern", byAge("modern")
tabStyle style.text(color = tint("--primary")), loc.body(cols(byAge("ancient")))
tabStyle style.text(color = tint("--success")), loc.body(cols(byAge("medieval")))
tabStyle style.text(color = tint("--secondary")), loc.body(cols(byAge("modern")))
tabStyle style.fill(tint("--shade")), loc.columnLabels(cols(stripes)), loc.body(cols(stripes))
# a rule where an age begins, and before today, through the labels and the dots
let starts = @[byAge("medieval")[0], byAge("modern")[0], "today"]
tabStyle style.borders({sLeft}, color = tint("--ink"), weight = "1.5px"),
[loc.body(cols(starts)), loc.columnLabels(cols(starts))]
tabStyle style.borders({sLeft}, color = tint("--ink"), weight = "1.5px"),
loc.spanners(tr"middle ages", tr"modern")
# each age's name in its dots' colour, so the key is over the dots
tabStyle style.text(color = tint("--primary-text"), weight = "bold"), loc.spanners(tr"ancient")
tabStyle style.text(color = tint("--success-text"), weight = "bold"), loc.spanners(tr"middle ages")
tabStyle style.text(color = tint("--secondary-text"), weight = "bold"), loc.spanners(tr"modern")
tabStyle style.text(size = "11px"), loc.body(cols("today"))
tabOptions(tableFontSize = "12.5px", columnLabelsFontSize = "75%",
dataRowPaddingHorizontal = "1px", columnLabelsPaddingHorizontal = "1px")
tabSourceNote tr"Each island's history on Wikipedia, read and summed up by Claude, the AI that wrote this story: a dot, not the whole story."
nbTable tOne column for each power, a dot where it ruled: the dots are made before the table, a "●" or
nothing, and colsLabelRotate turns the fifteen labels on their side so the columns stay as
narrow as a dot (label keeps each one on a single line, with no-break spaces). The three tabSpanners name the ages over them, tabStyle colours each
age's dots, and shades every other column, label and dots, so each label stays with its dots. colsMerge writes the state and the year in one cell, with the pattern
{1}<br>since {2}, and the table is set a size smaller (tabOptions) to fit a phone. Under each island's name, in
italics, its own language, beside the state's: the stub is Markdown (fmtMarkdown).
They say neither Romans nor Phoenicians, Greeks nor Arabs ever subdued Sardinia, wrote D. H. Lawrence in Sea and Sardinia (1921)7. The table says otherwise: Carthage, Rome, Byzantium, Aragon and Savoy all came. Rome and Byzantium ruled almost all of them. The last to join the state they are in were the islands that became states: Cyprus in 1960, Malta in 1964, and the six Croatian islands with Croatia in 1991. Before them, Rhodes, Kos and Karpathos joined Greece in 1947, after thirty-five years under Italy, and Gökçeada, the Greek Imbros, went to Turkey at Lausanne in 1923.
UNESCO lists 28 World Heritage properties on the islands. Sicily has six, Malta three, Cyprus three. Some are one place; others are several, a serial property in UNESCO's words: the late Baroque towns of the Val di Noto are eight towns, and Malta's megalithic temples are seven, on Malta and Gozo.
| World Heritage on the islands | |||
|---|---|---|---|
| listed | places | ||
| Chios | |||
| Monasteries of Daphni, Hosios Loukas and Nea Moni of Chios | 1990 | 1 | |
| Corfu | |||
| Old town of Corfu | 2007 | 2 | |
| Corsica | |||
| Gulf of Porto: Calanche of Piana, Gulf of Girolata, Scandola Reserve | 1983 | 1 | |
| Crete | |||
| Minoan Palatial Centres | 2025 | 8 | |
| Djerba | |||
| Djerba | 2023 | 1 | |
| Cyprus | |||
| Paphos | 1980 | 4 | |
| Painted Churches in the Troödos Region | 1985 | 11 | |
| Khirokitia | 1998 | 1 | |
| Gozo | |||
| Megalithic Temples of Malta | 1980 | 2 | |
| Hvar | |||
| Stari Grad Plain | 2008 | 1 | |
| Ibiza | |||
| Ibiza, Biodiversity and Culture | 1999 | 5 | |
| Lipari | |||
| Aeolian Islands | 2000 | 1 | |
| Mallorca | |||
| Cultural Landscape of the Serra de Tramuntana | 2011 | 1 | |
| Malta | |||
| Hypogeum of Ħal Saflieni | 1980 | 1 | |
| Valletta | 1980 | 2 | |
| Megalithic Temples of Malta | 1980 | 6 | |
| Menorca | |||
| Talayotic Culture of Minorca | 2023 | 2 | |
| Patmos | |||
| The Historic Centre (Chorá) with the Monastery of Saint-John the Theologian and the Cave of the Apocalypse on the Island of Pátmos | 1999 | 2 | |
| Rhodes | |||
| Medieval City of Rhodes | 1988 | 1 | |
| Samos | |||
| Pythagoreion and Heraion of Samos | 1992 | 3 | |
| Sardinia | |||
| Su Nuraxi di Barumini | 1997 | 1 | |
| domus de janas | 2025 | 4 | |
| Sicily | |||
| Valle dei Templi | 1997 | 1 | |
| Villa Romana del Casale | 1997 | 1 | |
| Late Baroque Towns of the Val di Noto | 2002 | 9 | |
| Syracuse and the Rocky Necropolis of Pantalica | 2005 | 5 | |
| Etna Park | 2013 | 1 | |
| Arab-Norman Palermo and the Cathedral Churches of Cefalú and Monreale | 2015 | 10 | |
| Čiovo | |||
| Historic City of Trogir | 1997 | 1 | |
| UNESCO's list as Wikidata has it; a property is placed on an island by the outline that holds its places. A mountain marks a natural property. | |||
let sites = story("heritage.csv")
type Line = object
name: string
icon: string
listed: Value
parts: Value
level: int
var lines: seq[Line]
var last = ""
for i in 0 ..< sites.nrows:
if $sites["island", i] != last:
last = $sites["island", i]
lines.add Line(name: last, listed: toValue(nil), parts: toValue(nil))
let natural = $sites["property", i] in ["1427", "258", "908"]
lines.add Line(name: $sites["site", i], icon: if natural: "mountain-sun" else: "landmark",
listed: sites["listed", i], parts: sites["parts", i], level: 1)
let t = tabella(lines, rownameCol = "name", locale = lang):
tabHeader tr"World Heritage on the islands"
optCssTheme()
colsHide ["level"]
colsMove ["icon"], after = "name"
fmtIcon "icon", height = "1em", fillColor = tint("--success")
tabStubIndent toSeq(0 ..< lines.len).filterIt(lines[it].level == 1), "increase"
tabStyle style.text(weight = "bold"), loc.stub(toSeq(0 ..< lines.len).filterIt(lines[it].level == 0))
subMissing ["listed", "parts"], missingText = ""
colsLabel:
icon: ""
listed: tr"listed"
parts: tr"places"
tabSourceNote md(tr"[UNESCO's list](https://whc.unesco.org/en/list/) as Wikidata has it; a property is placed on an island by the outline that holds its places. A mountain marks a natural property.")
nbTable tOne table, two levels: each island is a row with its name in bold, and its properties follow,
indented with tabStubIndent (new in 0.2), which moves a stub's text in by a step. The icons are
Font Awesome's landmark and mountain-sun. Gozo, Lipari, Patmos and Čiovo are not
among the 35 main islands, but have a property too.
Eurostat measures the European Union by regions, and most of the main islands are a region of their own, or part of one: the Balearic Islands, the North and South Aegean, the Ionian Islands, Adriatic Croatia. Djerba, in Tunisia, is outside these numbers, and Gökçeada, in Turkey, has only its unemployment. The richness of a region is its gross domestic product per person, in purchasing power standards, euros that buy the same everywhere; each region's amount is written here the way its own language writes money.
| Income and work | |||
|---|---|---|---|
| the regions of the main islands | |||
| GDP in PPS, 2024 | jobless | ||
| per person | EU = 100 | ||
| Malta | €43,900 | 3.1% | |
| Tuscany Elba | 41.000 € | 4.3% | |
| Balearic Islands Mallorca, Menorca, Ibiza | 40.300 € | 8.8% | |
| Cyprus | 39.500 € | 4.4% | |
| Attica Kythira | 38.200 € | 8.1% | |
| Corsica | 34 500 € | 7.3% | |
| Sardinia | 29.000 € | 9.3% | |
| Adriatic Croatia Cres, Krk, Brač, Hvar, Pag, Korčula | 29.200 € | 5.5% | |
| South Aegean Rhodes, Naxos, Andros, Karpathos, Kos | 27.900 € | 7.3% | |
| Ionian Islands Cephalonia, Corfu, Zakynthos, Lefkada | 25.300 € | 9.0% | |
| Sicily | 24.500 € | 12.2% | |
| Crete | 23.800 € | 5.1% | |
| Central Greece Euboea | 23.900 € | 8.5% | |
| Eastern Macedonia and Thrace Thasos | 17.800 € | 10.6% | |
| North Aegean Lesbos, Chios, Lemnos, Samos, Icaria | 16.800 € | 6.4% | |
| Balıkesir Gökçeada | 5.6% | ||
| Eurostat, as Wikipedia lists it: GDP of the NUTS 2 regions in 2024, unemployment in 2025. | |||
var seen = initHashSet[string]()
var d = main.keep(proc (i: int): bool =
result = not main["region", i].isNull and $main["region", i] notin seen
if result: seen.incl $main["region", i])
d = d.withColumn("label", proc (i: int): Value =
let isl = toSeq(0 ..< main.nrows).filterIt(main["region", it] == d["region", i]).mapIt($main["island", it])
toValue(if isl == @[$d["region", i]]: $d["region", i] else: $d["region", i] & " \n*" & isl.join(", ") & "*"))
var t = tabella(d, rownameCol = "label", locale = lang):
tabHeader tr"Income and work", tr"the regions of the main islands"
optCssTheme()
colsHide everything()
colsUnhide ["pps_per_person", "pps_index", "jobless_2025"]
fmtMarkdown "label"
rowOrder "pps_index", reverse = true
fmtNanoplot "pps_index", plotHeight = "1.1em", referenceLine = "100",
options = nanoplotOptions(dataBarFillColor = tint("--secondary"), dataBarStrokeColor = tint("--secondary"))
fmtPercent "jobless_2025", decimals = 1, scaleValues = false
colsLabel:
pps_per_person: tr"per person"
pps_index: tr"EU = 100"
jobless_2025: tr"jobless"
tabSpanner tr"GDP in PPS, 2024", ["pps_per_person", "pps_index"]
tabStyle proc (r: Row): CellStyle = (if r.pps_index.toFloat < 75: style.fill(tint("--primary-soft")) else: CellStyle()),
[loc.stub(), loc.body()]
tabSourceNote md(tr"Eurostat, as Wikipedia lists it: [GDP of the NUTS 2 regions](https://en.wikipedia.org/wiki/List_of_European_Union_regions_by_GDP) in 2024, [unemployment](https://en.wikipedia.org/wiki/List_of_European_regions_by_unemployment_rate) in 2025.")
# each region's money in its own language: one locale for the rows of each
for l in ["it", "el_CY", "fr", "el", "ca", "hr", "mt"]: # Turkey's region has no GDP here
let rowsOf = toSeq(0 ..< d.nrows).filterIt(d["locale", it] == l)
t = t.fmtCurrency("pps_per_person", rows = rowsOf, currency = "EUR", decimals = 0, locale = l)
nbTable tThe amounts are formatted in each region's locale: "24.500 €" in Italian, "34 500 €" in French,
"€43,900" in Maltese English. tabelline 0.2 has every locale of CLDR (657 of them), and
fmtCurrency takes locale and rows, so one column can speak several languages. The
index is a nanoplot of single values: one bar per row from a shared zero, with a dashed line at
the EU's 100. The rows below 75, where the EU's cohesion funds go first, are highlighted:
tabStyle with a proc of the row, on the stub and the body.
The Balearic Islands and Malta are as rich as the European average, or richer, from tourism and, in Malta, finance and gaming. Elba and Kythira look rich too, but their regions, Tuscany and Attica, are mostly Florence and Athens. The North Aegean, Lesbos, Chios, Lemnos, Samos and Icaria, is among the poorest regions of the Union, at 42, with Eastern Macedonia and Thrace, Thasos's region on the mainland, at 45.
Twenty years of work
Unemployment, every year from 2006 to 2025: the line of each region against the median of the 300 or so regions of Europe, its mean over the twenty years, and how much it moved around it.
| Unemployment, 2006–2025 | |||
|---|---|---|---|
| 2006–2025 | 2025 | mean ± sd | |
| Sicily | 12.2 | 17.2 ± 3.6 | |
| Eastern Macedonia and Thrace | 10.6 | 16.6 ± 5.5 | |
| Sardinia | 9.3 | 13.7 ± 3.1 | |
| Ionian Islands | 9.0 | 14.3 ± 3.7 | |
| Balearic Islands | 8.8 | 14.3 ± 5.2 | |
| Central Greece | 8.5 | 16.9 ± 7.2 | |
| Attica | 8.1 | 15.7 ± 7.4 | |
| Corsica | 7.3 | 8.4 ± 2.1 | |
| South Aegean | 7.3 | 13.8 ± 4.3 | |
| North Aegean | 6.4 | 14.2 ± 6.2 | |
| Balıkesir | 5.6 | 6.1 ± 1.1 | |
| Adriatic Croatia | 5.5 | 10.3 ± 3.7 | |
| All regions (median) | 5.5 | 6.8 ± 1.1 | |
| Crete | 5.1 | 14.4 ± 6.6 | |
| Cyprus | 4.4 | 8.3 ± 4.1 | |
| Tuscany | 4.3 | 6.7 ± 1.8 | |
| Malta | 3.1 | 5.1 ± 1.3 | |
| Eurostat, as Wikipedia lists it: List of European regions by unemployment rate (%). | |||
let jobs = story("unemployment.csv")
let years = toSeq(2006 .. 2025).mapIt("y" & $it)
let t = tabella(jobs, rownameCol = "region", locale = lang):
tabHeader tr"Unemployment, 2006–2025"
optCssTheme()
summaryColumns:
mean: agg.mean
sd: agg.std
columns = years
colsNanoplot years, autoscale = true, plotHeight = "1.2em", newColName = "trend",
newColLabel = "2006–2025", xVals = toSeq(2006 .. 2025).mapIt(it.float), referenceX = @["2013"],
options = nanoplotOptions(dataLineStrokeColor = tint("--secondary"),
dataPointRadius = 0, dataAreaFillColor = tint("--secondary-soft"))
colsUnhide ["y2025"]
colsMove ["trend"], after = "region"
fmtNumber ["mean", "sd", "y2025"], decimals = 1
colsMergeUncert "mean", "sd"
tabStyle style.css("white-space: nowrap"), loc.body(cols("mean"))
rowOrder "y2025", reverse = true
colsLabel:
mean: tr"mean ± sd"
y2025: tr"2025"
let median = where(it["region"] == tr"All regions (median)")
tabStyle style.fill(tintMix("--ink", 10)) & style.text(weight = "bold"), loc.stub(rows = median), loc.body(rows = median)
tabOptions(dataRowPaddingHorizontal = "4px", columnLabelsPaddingHorizontal = "4px") # to fit a phone
tabSourceNote md(tr"Eurostat, as Wikipedia lists it: [List of European regions by unemployment rate](https://en.wikipedia.org/wiki/List_of_European_regions_by_unemployment_rate) (%).")
nbTable tsummaryColumns adds a column for each aggregate, computed across the columns of each row:
here the mean and the standard deviation of the twenty years. colsMergeUncert writes them as
one value, "14.2 ± 4.1". colsNanoplot draws the twenty columns as a line in a new column and
hides them; colsUnhide shows 2025 again. xVals gives each column its year, so referenceX
can draw the dashed line at 2013 (both not from gt). The median of Europe's regions, a yardstick
and not a region, is the shaded row in bold: tabStyle on the stub and the body of the rows
where the region is the median's.
Sicily in 2014, as the table writes it: 22.2
let jobs = story("unemployment.csv")
let sicilyRow = toSeq(0 ..< jobs.nrows).filterIt(jobs["region", it] == tr"Sicily")
sicily14 = extractCells(tabella(jobs, rownameCol = "region", locale = lang), "y2014", rows = sicilyRow)[0]
nbText tr"Sicily in 2014, as the table writes it: **{sicily14}**".replace("{sicily14}", sicily14)Sicily's rate in 2014, in the next paragraph, is not typed: extractCells takes it from the
table's cell, formatted as the table writes it, and the paragraph puts it in its text.
The crisis of the 2010s is a hill on every line, and the dashed line is 2013, the year the European Union had the most people out of work: in 2014 Sicily had 22.2% of its people out of work, the South Aegean more than one in five in 2013. Every region is back down now, and Malta, at 3.1%, has fewer out of work than almost anywhere in Europe.
La prima lezione delle isole è che non puoi andartene a piedi. Acqua, aria, vento, onde, corde, bitte, sartie. Devi prendere una nave o un aereo.
The first lesson of islands is that you can't leave on foot. Water, air, wind, waves, ropes, bollards, shrouds. You have to take a ship or a plane: the first lines of Antonella Anedda's Isolatria (2013)8, on the Maddalena islands. Most visitors fly. Wikidata has the passengers of 64 airports on the islands, year by year, some since the 1960s; for each island, the sum of its airports (an island that has a large airport leaves its airstrips out). Every line starts in 2000 and ends in 2025, and the dashed line is 11 March 2020, when the World Health Organization called COVID-19 a pandemic: the dip right after it is the year without travel.
| Air passengers | |||
|---|---|---|---|
| the fourteen busiest islands | |||
| passengers a year, 2000 on | last count | 2020 | |
| Mallorca | 33.8 M | −79% | |
| Sicily | 18.1 M | −63% | |
| Crete | 11.4 M | ||
| Ibiza | 9.1 M | −74% | |
| Sardinia | 9.1 M | −63% | |
| Rhodes | 5.9 M | −72% | |
| Malta | 5.9 M | ||
| Menorca | 3.9 M | −69% | |
| Corfu | 3.7 M | −71% | |
| Corsica | 3.2 M | −45% | |
| Kos | 2.8 M | −70% | |
| Santorini | 2.7 M | −75% | |
| Zakynthos | 1.9 M | −76% | |
| Mykonos | 1.7 M | −73% | |
| Wikidata (P3872), the yearly counts of each airport, added up for each island; the last count is of 2022, of 2025 for Mallorca and Ibiza. | |||
let pax = story("passengers.csv")
var series: OrderedTable[string, seq[(int, float)]]
for i in 0 ..< pax.nrows:
series.mgetOrPut($pax["island", i], @[]).add (pax["year", i].toFloat.int, pax["passengers", i].toFloat)
var rows: seq[tuple[island: string, years: Value, latest: float, year: int, dip: float]]
for name, s in series:
if s.len < 8: continue
let y19 = s.filterIt(it[0] == 2019)
let y20 = s.filterIt(it[0] == 2020)
let dip = if y19.len > 0 and y20.len > 0: y20[0][1] / y19[0][1] - 1 else: NaN
rows.add (name, toValue((x: s.mapIt(&"{it[0]}-07-01"), y: s.mapIt(it[1]))), s[^1][1], s[^1][0], dip)
rows.sort(proc (a, b: auto): int = cmp(b.latest, a.latest))
let t = tabella(rows[0 ..< 14], rownameCol = "island", locale = lang):
tabHeader tr"Air passengers", tr"the fourteen busiest islands"
optCssTheme()
fmtNanoplot "years", plotHeight = "1.2em", expandX = @[946_684_800.0, 1_751_328_000.0],
referenceX = @["2020-03-11"],
options = nanoplotOptions(dataLineStrokeColor = tint("--secondary"), dataPointRadius = 0,
dataAreaFillColor = tint("--secondary-soft"))
fmtNumberSi "latest", decimals = 1
colsHide ["year"]
tabStyle style.css("white-space: nowrap") & style.text(size = "12px"), loc.body(cols(["latest", "dip"]))
fmtPercent "dip", decimals = 0
subMissing "dip", missingText = ""
colsLabel:
years: tr"passengers a year, 2000 on"
latest: tr"last count"
dip: tr"2020"
tabSourceNote md(tr"Wikidata ([P3872](https://www.wikidata.org/wiki/Property:P3872)), the yearly counts of each airport, added up for each island; the last count is of 2022, of 2025 for Mallorca and Ibiza.")
nbTable tThe points of each line are placed by date (x is a list of ISO dates, "2019-07-01"), so a year
without a count leaves a gap of the right width, and expandX makes every axis run from 2000
to 2025: on an axis shared by the rows every plot has the same width, so the years line up.
referenceX (new in tabelline 0.2, and not in gt or Great Tables) draws the dashed line at a date, with the date on hover. Each line has its own y axis, from its lowest year to its highest, so the dip of 2020
shows on the small islands too.
fmtNumberSi writes "33.8 M"; the last count is of 2022 for most islands.
Every main island has a Mediterranean climate: hot dry summers, mild wet winters. The highest temperature of an average day, month by month, from the weather box of each island's main town on Wikipedia; and the sea, where a page has it. The Mediterranean is a sea of seas, and the islands are grouped by theirs: Wikidata puts each island in or beside a sea, a gulf or a strait, and the gulfs and straits are taken to the sea they are part of. Ten seas and the Strait of Sicily hold all but four of the 195 (the Îles d'Hyères and La Galite are in the open sea), the Aegean alone 90 of them; Sicily is on three, and here goes with the first. These are averages of the past, and the past is moving, as Giacomo Di Girolamo writes in The Passenger's Sicily:
Una volta, dire Sicilia significava dire Mediterraneo. […] Adesso, dire Sicilia significa quasi dire Tropici.
Once, to say Sicily was to say the Mediterranean. […] Now, to say Sicily is almost to say the Tropics.
| Air and sea, January and August | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| high of an average day, °C | sea in Aug, °C | ||||||||||||
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | ||
| Balearic | |||||||||||||
| Mallorca | 16 | 16 | 18 | 20 | 23 | 27 | 30 | 30 | 27 | 24 | 20 | 17 | 26 |
| Menorca | 14 | 14 | 16 | 18 | 22 | 26 | 29 | 29 | 26 | 23 | 18 | 15 | 26 |
| Ibiza | 16 | 16 | 18 | 20 | 23 | 27 | 30 | 30 | 28 | 24 | 20 | 17 | 26 |
| Ligurian | |||||||||||||
| Corsica | 14 | 14 | 16 | 18 | 22 | 26 | 29 | 29 | 26 | 23 | 18 | 15 | |
| Elba | 10 | 10 | 13 | 16 | 20 | 24 | 27 | 28 | 24 | 19 | 14 | 11 | |
| Tyrrhenian | |||||||||||||
| Sicily | 15 | 15 | 17 | 20 | 24 | 28 | 31 | 31 | 28 | 24 | 20 | 16 | |
| Sardinia | 15 | 15 | 18 | 20 | 24 | 29 | 32 | 32 | 28 | 24 | 19 | 16 | |
| Strait of Sicily | |||||||||||||
| Djerba | 16 | 18 | 20 | 23 | 27 | 30 | 33 | 34 | 31 | 28 | 22 | 18 | 28 |
| Malta | 16 | 16 | 17 | 20 | 24 | 29 | 32 | 32 | 29 | 25 | 21 | 17 | |
| Adriatic | |||||||||||||
| Cres | 10 | 11 | 13 | 16 | 21 | 25 | 28 | 28 | 24 | 20 | 15 | 11 | |
| Krk | 9 | 10 | 13 | 18 | 23 | 27 | 29 | 30 | 24 | 19 | 14 | 11 | 25 |
| Brač | 11 | 12 | 14 | 18 | 23 | 28 | 31 | 31 | 25 | 20 | 16 | 12 | |
| Hvar | 13 | 13 | 15 | 18 | 22 | 26 | 30 | 30 | 26 | 22 | 17 | 14 | |
| Pag | 11 | 11 | 14 | 17 | 21 | 25 | 28 | 28 | 24 | 20 | 15 | 12 | |
| Korčula | 12 | 13 | 14 | 17 | 22 | 25 | 28 | 28 | 25 | 21 | 17 | 13 | 25 |
| Ionian | |||||||||||||
| Cephalonia | 14 | 14 | 16 | 19 | 23 | 27 | 29 | 30 | 27 | 23 | 19 | 16 | |
| Corfu | 14 | 14 | 16 | 19 | 24 | 28 | 31 | 32 | 28 | 23 | 19 | 15 | |
| Zakynthos | 14 | 14 | 16 | 19 | 23 | 28 | 31 | 31 | 28 | 23 | 19 | 16 | |
| Lefkada | 14 | 16 | 16 | 19 | 24 | 28 | 31 | 31 | 27 | 23 | 18 | 15 | |
| Aegean | |||||||||||||
| Crete | 16 | 16 | 17 | 20 | 23 | 26 | 28 | 28 | 26 | 23 | 21 | 18 | 26 |
| Euboea | 13 | 14 | 16 | 20 | 25 | 30 | 33 | 32 | 29 | 23 | 19 | 15 | |
| Lesbos | 12 | 13 | 15 | 19 | 24 | 29 | 31 | 31 | 27 | 22 | 17 | 14 | |
| Rhodes | 16 | 16 | 17 | 20 | 24 | 28 | 31 | 31 | 29 | 26 | 22 | 18 | 27 |
| Chios | 13 | 13 | 17 | 19 | 24 | 29 | 32 | 32 | 29 | 24 | 20 | 16 | |
| Lemnos | 13 | 13 | 15 | 17 | 22 | 27 | 29 | 29 | 26 | 21 | 16 | 14 | |
| Samos | 14 | 14 | 16 | 20 | 25 | 30 | 33 | 33 | 29 | 24 | 18 | 15 | |
| Naxos | 14 | 15 | 16 | 19 | 22 | 26 | 27 | 27 | 25 | 22 | 19 | 16 | |
| Andros | 13 | 13 | 16 | 19 | 24 | 29 | 31 | 30 | 27 | 23 | 18 | 14 | |
| Thasos | 10 | 12 | 14 | 18 | 24 | 28 | 31 | 32 | 27 | 21 | 17 | 12 | |
| Karpathos | 16 | 16 | 17 | 20 | 24 | 27 | 29 | 30 | 28 | 24 | 21 | 18 | |
| Kos | 14 | 16 | 18 | 20 | 25 | 28 | 30 | 31 | 28 | 26 | 21 | 17 | |
| Gökçeada | 10 | 11 | 13 | 18 | 23 | 28 | 31 | 31 | 26 | 20 | 16 | 11 | |
| Kythira | 13 | 13 | 14 | 17 | 22 | 26 | 29 | 29 | 26 | 22 | 18 | 14 | |
| Icaria | 14 | 14 | 16 | 20 | 25 | 30 | 33 | 33 | 29 | 24 | 18 | 15 | |
| Levantine | |||||||||||||
| Cyprus | 16 | 17 | 20 | 25 | 30 | 34 | 38 | 37 | 34 | 29 | 23 | 18 | |
| Wikipedia, the weather box of each island's main town (Krk: Rijeka; Cres: Mali Lošinj; Brač: Split; Pag: Zadar; Korčula: Dubrovnik; Andros: Ermoupoli, on Syros; Icaria: Samos; Cyprus: Nicosia, inland); the sea from tables beside them. | |||||||||||||
let clim = story("climate.csv")
let ms = toSeq(1 .. 12).mapIt(&"m{it:02}")
let highs = clim.keep(proc (i: int): bool = clim["measure", i] == "high_c")
var d = highs.withColumn("sea", proc (i: int): Value =
let s = toSeq(0 ..< clim.nrows).filterIt(clim["title", it] == highs["title", i] and clim["measure", it] == "sea_c")
if s.len == 0: toValue(nil) else: clim["m08", s[0]])
d = d.withColumn("rank", proc (i: int): Value = main["rank", mainRow($highs["title", i])])
d = d.withColumn("waters", proc (i: int): Value = # the first of an island's seas
toValue(tr(($main["seas", mainRow($highs["title", i])]).split("; ")[0].replace(" Sea", "").replace("Sea of ", ""))))
let t = tabella(d, rownameCol = "island", groupnameCol = "waters", locale = lang):
tabHeader tr"Air and sea, January and August"
optCssTheme()
colsHide ["title", "measure", "rank"]
rowOrder "rank"
rowGroupOrder ["Balearic", "Ligurian", "Tyrrhenian", "Strait of Sicily", "Adriatic", "Ionian",
"Aegean", "Levantine"].mapIt(tr(it))
fmtNumber ms, decimals = 0
fmtNumber "sea", decimals = 0
dataColor ms, palette = palette("rdbu"),
domain = (5.0, 38.0)
colsLabel toSeq(0 ..< 12).mapIt((ms[it], tr(monthNames[it])))
colsLabelRotate ms, dir = "slanted"
subMissing "sea", missingText = ""
colsLabel:
sea: tr"sea in Aug"
colsUnits:
sea: "degC"
tabSpanner tr"high of an average day, {{degC}}", ms
tabOptions(tableFontSize = "11.5px", dataRowPadding = "3px", dataRowPaddingHorizontal = "2px",
columnLabelsPaddingHorizontal = "2px")
tabSourceNote tr"Wikipedia, the weather box of each island's main town (Krk: Rijeka; Cres: Mali Lošinj; Brač: Split; Pag: Zadar; Korčula: Dubrovnik; Andros: Ermoupoli, on Syros; Icaria: Samos; Cyprus: Nicosia, inland); the sea from tables beside them."
nbTable tThe islands are grouped by their sea (groupnameCol), from west to east with rowGroupOrder,
and in each sea by size. Twelve narrow columns: colsLabelRotate(dir = "slanted") (new in tabelline 0.2, and not in gt or Great Tables) turns their
labels at 45 degrees, so the months keep their names and the columns stay as narrow as their
numbers. dataColor colours each cell on a scale from cool blue to hot red
over 5–38 °C, with the palette rdbu. colsUnits puts the unit after the sea's label; in the
spanner it is written inside the label, {{degC}}.
Nicosia, inland, reaches 37 °C in August. The coolest in winter are the islands of the north: Krk and Cres at the top of the Adriatic, when the bora comes down from the mountains, Gökçeada and Thasos at the top of the Aegean, and Elba. The sea is warmest in August, 26 to 28 °C in the south, and in the Aegean the meltemi blows all summer. The winds are a sea of their own, as Nick Hunt9 writes in Mediterraneo, The Passenger's book on this sea (Iperborea, 2023, in Tommaso Stella's Italian):
Al di sopra del Mediterraneo esiste un altro mare: un turbolento e palpitante oceano gassoso anziché liquido.
Above the Mediterranean there is another sea: a turbulent, throbbing ocean of air instead of water.
To end, one thing to see, a beach and a taste for each main island: a starting point, chosen by Claude, the AI that wrote this story, from what Wikipedia says of each island, each with its page on Wikipedia. Predrag Matvejević, whose Mediterranean Breviary (1987) is a tour of the sea's shores, ports and islands, wrote later a whole book on bread, Pane nostro (2010). A taste is a good way in.
let hl = story("highlights.csv")
proc wiki(text, page: Value): Value =
if text.isNull or ($text).len == 0: toValue(nil)
else:
let slug = ($page).multiReplace((" ", "_"), ("(", "%28"), (")", "%29"))
toValue("[" & tr($text) & "](https://en.wikipedia.org/wiki/" & slug & ")")
var d = hl.withColumn("island", proc (i: int): Value = main["island", mainRow($hl["title", i])])
d = d.withColumn("see", proc (i: int): Value = wiki(hl["see", i], hl["see_page", i]))
d = d.withColumn("beach", proc (i: int): Value = wiki(hl["beach", i], hl["beach_page", i]))
d = d.withColumn("taste", proc (i: int): Value = wiki(hl["taste", i], hl["taste_page", i]))
let t = tabella(d, rownameCol = "island"):
tabHeader tr"Something to see, a beach, a taste"
optCssTheme()
colsHide ["title", "see_page", "beach_page", "taste_page"]
fmtMarkdown ["see", "beach", "taste"]
subMissing ["taste"], missingText = ""
colsLabel:
see: html(iconSvg("landmark", height = "1em") & " " & tr"see")
beach: html(iconSvg("umbrella-beach", height = "1em") & " " & tr"swim")
taste: html(iconSvg("utensils", height = "1em") & " " & tr"taste")
tabStyle style.text(size = "13px"), loc.body()
tabSourceNote tr"Chosen by Claude, the AI that wrote this story; links to Wikipedia."
nbTable tThe links are Markdown, [Knossos](https://...), shown by fmtMarkdown; the icons in the
labels are Font Awesome's, as SVG, from iconSvg, inside html() so the label keeps them.
Every book this story quotes or names, in the order it first meets them: the number is the one beside that first mention, and ↩ goes back to it.
- Fernand Braudel, The Mediterranean and the Mediterranean World in the Age of Philip II (1949), and La Méditerranée (1977): the sea as a history of slow times. Braudel on Wikipedia. ↩
- Mediterraneo, The Passenger (Iperborea, 2023): today's sea in essays and photographs, with essays by David Abulafia, author of The Great Sea (2011), Nick Hunt on the winds, Annalisa Camilli, Rachel Roddy and others; and its books on Sicily (2024) and Sardinia (2026). ↩
- Predrag Matvejević, Mediterranean: A Cultural Landscape (1987, Mediteranski brevijar; in Italian Breviario mediterraneo): ports, lighthouses, winds and islands, a geography told as poetry. He also wrote an Isolario Mediterraneo (2000), after the old books of islands. Matvejević on Wikipedia. ↩
- Fabrizia Ramondino, Guerra di infanzia e di Spagna (Einaudi, 2001): a childhood in Mallorca, where the islands have the shapes of fish and mermaids. Ramondino on Wikipedia. ↩
- Sicilia, The Passenger (Iperborea, 2024): its introduction, on the island that looks like a world of its own on a map; and Giacomo Di Girolamo's "Tropico di Sicilia", on a climate turning tropical (an excerpt in Il Post). ↩
- Gilles Deleuze, L'isola deserta e altri scritti (Einaudi, 2007): his early essay on desert islands, where the island is what the sea surrounds. Deleuze on Wikipedia. ↩
- D. H. Lawrence, Sea and Sardinia (1921): a week's journey from Sicily to Sardinia and back, in the winter of 1921. ↩
- Antonella Anedda, Isolatria. Viaggio nell'arcipelago della Maddalena (Laterza, 2013): the islands off Sardinia where her family comes from. Anedda on Wikipedia. ↩
- Nick Hunt, on the winds, in Mediterraneo (above): an excerpt in Il Post. ↩
How this story is built
From zero, in four layers. How the data was gathered, cleaned and checked is a story of its own: The islands' data, made with nanuq.
1. The sources are open: Wikipedia's List of islands in the Mediterranean (the 195 islands, their area, population and main town), Wikidata (each island's place and highest point, World Heritage sites, airports and their passengers), the outlines of OpenStreetMap (© OpenStreetMap contributors, ODbL), the weather boxes of the islands' towns, and two Wikipedia lists of Eurostat's regional figures (Eurostat's own site could not be read where this was made).
2. The tables of the data are made in three steps, in docs/stories/data/isole/src/:
fetch.nim downloads, extract.nim (standard library) finds each island's outline and what is
on it and reads the wikitext, and process.nim, written with
nanuq (Polars for Nim), joins, cleans and counts
them into the CSV files this page reads. Three small tables are written by Claude, not gathered: the regions,
the history and the highlights.
3. The shapes are OpenStreetMap's land polygons, which follow the coast to a few metres: for each island, the polygon
that holds its point on Wikidata, in kilometres from its middle, simplified to at most 120
points with the Douglas–Peucker algorithm:
it joins the two ends of a coastline with a straight line, keeps the point farthest from it, and
does the same again on each side, until no point left out is farther than a set distance, so
the capes and bays that give an island its shape stay and the small wiggles go. It was written
for this story, with the standard library, in extract.nim (douglasPeucker and simplify;
the data story shows the whole file). The outlines are numbers in two columns, x
and y, and a record of the two is a cell of a shape nanoplot.
4. The tables on this page are tabelline 0.2, with nbShowCode running a cell of Nim and
showing the table it makes, its code folded under it. What 0.2 brought that they use:
| What this story uses | |
|---|---|
| where | |
shape nanoplots, referenceX, slanted labels (new) | every outline, getting there, when to go |
box, line and bar nanoplots, colsNanoplot | sizes by country, unemployment, passengers, GDP |
units in labels, colsUnits | most tables |
fmtCountry, fmtFraction, fmtNumberSi | thirty-five islands, the same scale, getting there |
| every locale of CLDR | how they live now |
colsLabelRotate | when to go |
summaryRows, grandSummaryRows, summaryColumns | thirty-five islands, the same scale, all 195, twenty years of work |
colsMergeRange, colsMergeUncert, colsMerge | who ruled them, twenty years of work, all 195 |
rowGroupAsColumn, tabStubIndent | the same scale, World Heritage |
tabellaPreview, extractCells | all 195, twenty years of work |
tabStyle with a proc, tabStyleBody | how they live now, twenty years of work |
| lists and records in a cell | the outlines, who ruled them |
fmtIcon, iconSvg | World Heritage, something to see |
var used = tableData:
feature: ["shape nanoplots, `referenceX`, slanted labels (new)", "box, line and bar nanoplots, `colsNanoplot`",
"units in labels, `colsUnits`", "`fmtCountry`, `fmtFraction`, `fmtNumberSi`",
"every locale of CLDR", "`colsLabelRotate`",
"`summaryRows`, `grandSummaryRows`, `summaryColumns`",
"`colsMergeRange`, `colsMergeUncert`, `colsMerge`", "`rowGroupAsColumn`, `tabStubIndent`",
"`tabellaPreview`, `extractCells`", "`tabStyle` with a proc, `tabStyleBody`",
"lists and records in a cell", "`fmtIcon`, `iconSvg`"]
where: ["every outline, getting there, when to go", "sizes by country, unemployment, passengers, GDP",
"most tables", "thirty-five islands, the same scale, getting there",
"how they live now", "when to go",
"thirty-five islands, the same scale, all 195, twenty years of work",
"who ruled them, twenty years of work, all 195", "the same scale, World Heritage",
"all 195, twenty years of work", "how they live now, twenty years of work",
"the outlines, who ruled them", "World Heritage, something to see"]
for c in ["feature", "where"]:
used = used.withColumn(c, proc (i: int): Value = toValue(tr($used[c, i])))
let t = tabella(used, rownameCol = "feature"):
tabHeader tr"What this story uses"
optCssTheme()
fmtMarkdown everything()
colsLabel:
where: tr"where"
tabStyle style.text(size = "12.5px"), loc.body()
nbTable t5. The look and the photos. The page opens in its own look, the Minoan one, after the frescoes of Crete and Thera and the vases of Athens (the switch at the top goes back to Munari). It was chosen in rounds, from eighteen sources, in the devlog post Designing a Mediterranean look. The photos over the headings were picked from the gallery Photos of the Mediterranean, by the story, which says for each where it is from, who made it, its licence and why it could go there; the page holds a copy of each pick, made smaller, with its credit under it.
6. Two languages. This page and the Italian one are the same file, isole.nim: the Italian
page, isole_it.nim, includes it with lang = "it". Every text a reader sees goes through tr,
which leaves it as it is in English and looks it up in data/isole/italiano.txt in Italian (the
English text, then its Italian); when a translation is missing, the Italian page does not build.
The islands' Italian names come from Wikidata, the numbers follow locale = lang in every
table, and EN · IT at the top goes to the other language, remembered; a first visit opens the
browser's language.











