using Dates, CairoMakie
function airport_pass()
tick_years = Date.(2012:2023)
DateTick = Dates.format.(tick_years, "yyyy")
# https://fr.wikipedia.org/wiki/Aéroport_de_Paris-Orly
traf_orly = [27_232_263, 28_274_154, 28_862_586, 29_664_993,
31_237_865, 32_042_475, 33_120_685, 31_853_049,
10_797_105, 15_724_580, 29_184_775, missing]
fig = Figure()
ax1 = Axis(fig[1,1])
scatterlines!(ax1, 1:length(DateTick), traf_nice, linewidth=2)
ax1.xticks = (1:length(DateTick), DateTick)
ax1.xlabel = "Year"
ax1.ylabel = "Number of passengers"
titlelayout = GridLayout(fig[0, 1], halign = :left, tellwidth = false)
Label(titlelayout[1, 1], "Air traffic at Côte d'Azur airport", halign = :left, fontsize = 20)
Label(titlelayout[2, 1], "https://societe.nice.aeroport.fr/presse-media/trafic-annuel", halign = :left, fontsize = 12)
fig
end
with_theme(airport_pass, theme_light())