Public
Edited
Oct 9, 2023
Importers
Insert cell
Insert cell
fetchCORS = (url, options) => fetch(`https://corsproxy.io/?${url}`, options)
Insert cell
async function read_xls(file, sheet_id, options = {}) {
const sheet = xlsx.read(await file.arrayBuffer(), { type: "array"}).Sheets[sheet_id];
const json = xlsx.utils.sheet_to_json(sheet, options);
return json;
}
Insert cell
xlsx = require("xlsx@0.17.0/dist/xlsx.core.min.js")
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