Public
Edited
Jan 13
Fork of Vulkane
1 fork
Insert cell
Insert cell
Insert cell
langstrecke_map = Plot.plot({
width,
insetTop: 10,
projection: { type: "equirectangular", rotate: [360, 0] },

marks: [
// Land
() => insetShadow,
Plot.geo(countries_global, {
fill: "#c9d8df",
imageFilter: "url(#inset-shadow)"
}),

// Borders
Plot.geo(countries_global, { stroke: "white", strokeOpacity: 0.7 }),

// Beelines

Plot.geo(beeline_sin_jfk, {
stroke: "#4f80ff",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_sin_ewr, {
stroke: "#e84f1c",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_doh_akl, {
stroke: "#6bb024",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_akl_jfk, {
stroke: "#4f80ff",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_per_lhr, {
stroke: "#e84f1c",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_mel_dfw, {
stroke: "#6bb024",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_dxb_akl, {
stroke: "#4f80ff",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_sin_lax, {
stroke: "#e84f1c",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_blr_sfo, {
stroke: "#6bb024",
strokeWidth: 1.5,
strokeOpacity: 0.7
}),

Plot.geo(beeline_iah_syd, {
stroke: "#e84f1c",
strokeWidth: 1.5,
strokeOpacity: 0.7
})
]
})
Insert cell
credits_langstrecke = md`<span style="font-family: InterRegular; font-size: 12px; color: #99AFC2;">Karte: RND/Christ • Quelle: meilenoptimieren.com<span>`
Insert cell
countries_global = FileAttachment("countries_global.geojson").json()
Insert cell
beelines = FileAttachment("beelines@1.geojson").json()
Insert cell
beeline_akl_jfk = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_akl_jfk.geojson"
)
Insert cell
beeline_blr_sfo = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_blr_sfo.geojson"
)
Insert cell
beeline_doh_akl = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_doh_akl.geojson"
)
Insert cell
beeline_dxb_akl = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_dxb_akl.geojson"
)
Insert cell
beeline_iah_syd = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_iah_syd.geojson"
)
Insert cell
beeline_mel_dfw = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_mel_dfw.geojson"
)
Insert cell
beeline_per_lhr = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_per_lhr.geojson"
)
Insert cell
beeline_sin_ewr = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_sin_ewr.geojson"
)
Insert cell
beeline_sin_jfk = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_sin_jfk.geojson"
)
Insert cell
beeline_sin_lax = d3.json(
"https://static.rndtech.de/share/rnd/geojson/beeline_sin_lax.geojson"
)
Insert cell
import { getLabelLength } from "@bayre/svg-swatches"
Insert cell
Insert cell
Insert cell
Insert cell
import { insetShadow } from "@ateliercartographie/plot-bar-map"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more