Published
Edited
Aug 16, 2021
5 stars
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
data = FileAttachment("dataset.bytes.1000.lines.csv")
Insert cell
Insert cell
Insert cell
viewof fileview = localFileInput({
value: data // default value if no file selected
})
Insert cell
Insert cell
dataset = fileview.csv({array: true, typed: true})
Insert cell
Insert cell
Insert cell
Insert cell
Inputs.table(dataset)
Insert cell
Insert cell
Insert cell
SummaryTable(dataset)
Insert cell
Insert cell
Insert cell
Insert cell
SummarizeColumn(dataset, "0")
Insert cell
Insert cell
Plot.plot({
y: {
grid: true
},
marks: [
Plot.rectY(dataset, Plot.binX({y: "count"}, {thresholds: 100})),
]
})
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.
Learn more