Platform
Resources
Pricing
Sign in
Get started
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Fork
Published
Observable Inputs
By
Mike Bostock
Edited
Oct 15, 2021
4 forks
43 stars
Insert cell
2
Insert cell
Insert cell
viewof
file
=
Inputs
.
file
(
)
Insert cell
file
Insert cell
Insert cell
Insert cell
6
viewof
csvfile
=
Inputs
.
file
(
{
label
:
"CSV file"
,
accept
:
".csv"
,
required
:
true
}
)
Insert cell
data
=
csvfile
.
csv
(
{
typed
:
true
}
)
Insert cell
Insert cell
viewof
jsonfile
=
Inputs
.
file
(
{
label
:
"JSON file"
,
accept
:
".json"
,
required
:
true
}
)
Insert cell
json
=
jsonfile
.
json
(
)
Insert cell
viewof
textfile
=
Inputs
.
file
(
{
label
:
"Text file"
,
accept
:
".txt"
,
required
:
true
}
)
Insert cell
text
=
textfile
.
text
(
)
Insert cell
viewof
imgfile
=
Inputs
.
file
(
{
label
:
"Image file"
,
accept
:
".png,.jpg"
,
required
:
true
}
)
Insert cell
image
=
imgfile
.
image
(
)
Insert cell
viewof
xlsxfile
=
Inputs
.
file
(
{
label
:
"Excel file"
,
accept
:
".xlsx"
,
required
:
true
}
)
Insert cell
workbook
=
xlsxfile
.
xlsx
(
)
Insert cell
viewof
zipfile
=
Inputs
.
file
(
{
label
:
"ZIP archive"
,
accept
:
".zip"
,
required
:
true
}
)
Insert cell
archive
=
zipfile
.
zip
(
)
Insert cell
Insert cell
viewof
files
=
Inputs
.
file
(
{
label
:
"Files"
,
multiple
:
true
}
)
Insert cell
files
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
Show 2 comments
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
file
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
csvfile
Show 6 comments
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
jsonfile
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
json
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
textfile
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
text
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
imgfile
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
image
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
xlsxfile
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
workbook
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
zipfile
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
archive
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
files
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML