Platform
Resources
Pricing
Sign in
Get started
Data Desk
Powering the climate movement with refined data on raw materials
Workspace
Fork
Public
By
Louis Goddard
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
fetchCORS
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
read_xls
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
xlsx
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML