Public
Edited
Mar 24
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
csv_url = `https://www.eurocontrol.int/performance/data/download/csv/${csv_file}`
// proxifyUrl(
// `https://www.eurocontrol.int/performance/data/download/csv/${csv_file}`
// )
Insert cell
rawdata = fetchp(csv_url).then((response) => response.text())
Insert cell
// data = d3.csvParse(rawdata, d3.autoType)
data = FileAttachment("y2d_co2@15.csv").csv()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
properties.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
y2d_co2@15.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
// adapted from @mbostock/saving-svg
serialize = {
const xmlns = "http://www.w3.org/2000/xmlns/";
const xlinkns = "http://www.w3.org/1999/xlink";
const svgns = "http://www.w3.org/2000/svg";
return function serialize(svg) {
svg = svg.children[0].cloneNode(true);
const fragment = window.location.href + "#";
const walker = document.createTreeWalker(svg, NodeFilter.SHOW_ELEMENT);
while (walker.nextNode()) {
for (const attr of walker.currentNode.attributes) {
if (attr.value.includes(fragment)) {
attr.value = attr.value.replace(fragment, "#");
}
}
}
svg.setAttributeNS(xmlns, "xmlns", svgns);
svg.setAttributeNS(xmlns, "xmlns:xlink", xlinkns);
return svg;
};
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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