Using tbrowser() with OECD data thanks to fromSDMX().
Last active
November 20, 2019 20:15
-
-
Save badosa/6c22ab5d2f16d611bf30f30f6c24e0c5 to your computer and use it in GitHub Desktop.
An OECD Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="/d/ed9665503abec4f542d1/style.css"> | |
<script src="https://cdn.jsdelivr.net/combine/npm/jsonstat@0.13.13,npm/jsonstat-utils@2.5.5"></script> | |
</head> | |
<body> | |
<div id="tbrowser">Retrieving dataset...</div> | |
<script type="text/javascript"> | |
var url="https://stats.oecd.org/SDMX-JSON/data/LFS_D/OECD+EU28+EUR+G7+NAM.MEN+WOMEN+MW.1524+2564+6599+900000.E+L+P+U.A/all?startTime=2000&endTime=2017&dimensionAtObservation=allDimensions"; | |
fetch(url) | |
.then(function(resp) { | |
resp.json().then(function(json){ | |
JSONstatUtils.tbrowser( | |
JSONstatUtils.fromSDMX(json), | |
document.getElementById("tbrowser"), | |
{ | |
tblclass: "tbrowser" | |
} | |
); | |
}); | |
}) | |
; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment