Platform
Resources
Pricing
Sign in
Get started
Mike Bostock
Visualization toolmaker. Founder
@observablehq
. Creator
@d3
. Former
@nytgraphics
. Pronounced BOSS-tock.
Workspace
Fork
Published
By
Mike Bostock
Edited
Mar 14, 2018
8 forks
Importers
17 stars
Insert cell
Insert cell
fetch
(
"https://httpbin.org/basic-auth/user/passwd"
,
{
headers
:
new
Headers
(
{
"Authorization"
:
`Basic ${
base64
.
encode
(
`${
login
}:${
password
}`
)
}`
}
)
,
}
)
.
then
(
response
=>
{
if
(
!
response
.
ok
)
throw
new
Error
(
response
.
status
)
;
return
response
.
json
(
)
;
}
)
Insert cell
Insert cell
Insert cell
Insert cell
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
login
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
password
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
submit
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
base64
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML