Published
Edited
May 4, 2022
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Plot.plot({
marks: [
Plot.barY(FailHeb.sheet("Region"), {x: "C", y: "E"})
]
})
Insert cell
Plot.plot({
marks: [
Plot.rectY(FailHeb.sheet("Region").slice(2), Plot.binX({y: "sum"}, {x: "C", y: "E"}))
]
})
Insert cell
Insert cell
dataURLexample = "https://statbel.fgov.be/sites/default/files/files/documents/Ondernemingen/7.5%20Faillissementen/Fail_Heb_en.xlsx"
Insert cell
sourceURL = "https://statbel.fgov.be/en/themes/enterprises/bankruptcy-statistic/bankruptcies-weekly-basis#figures"
Insert cell
selector = 'document.querySelector(".file-link").children[0].href'
Insert cell
fetch(sourceURL).then( t => t ) // blocked by CORS
Insert cell
Alternatively relying on https://statbel.fgov.be/en/news as a source of new datasets could be interesting. Unfortunately no RSS feeds seem available. Note also that there is a calendar of upcoming datasets.
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
FailHeb = FileAttachment("Fail_Heb_en.xlsx").xlsx()
Insert cell
FailHeb.sheet("Region")
Insert cell
import {printTable} from '@uwdata/data-utilities'
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