Public
Edited
Sep 23, 2023
Insert cell
Insert cell
mta_data = FileAttachment("MTA_Daily_Ridership_Data__Beginning_2020-9.csv").csv()
Insert cell
MTA_Daily_Ridership_Data__Beginning_2020-9.csv
X
Date
Y
Subways: Total Estimated Ridership
Color
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
MTA_Daily_Ridership_Data__Beginning_2020-9.csv
X
Subways: Total Estimated Ridership
Y
Color
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Select a data source…
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
MTA_Daily_Ridership_Data__Beginning_2020-9.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
MTA_Daily_Ridership_Data__Beginning_2020-9.csv
X
Date
Y
Subways: Total Estimated Ridership
Color
Subways: Total Estimated Ridership
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
MTA_Daily_Ridership_Data__Beginning_2020-9.csv
X
Buses: Total Estimated Ridership
Y
Subways: Total Estimated Ridership
Color
Subways: Total Estimated Ridership
Size
Subways: Total Estimated Ridership
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
viewof selectCategory = Inputs.select(["Classic", "Specialty", "Vegetarian"], {label: "Select one"})
Insert cell
pizza
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
pizza
SELECT * FROM "ordersByProductDay" WHERE category = ${selectCategory}
Insert cell
data
X
order_date
Y
sum
orders
Color
category
Size
Facet X
category
Facet Y
day_of_week
Mark
bar
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
data
X
order_date
Y
sum
orders
Color
category
Size
Facet X
category
Facet Y
day_of_week
Mark
bar
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Select a data source…
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
marks: [
Plot.frame({ strokeOpacity: 0.1 }),
Plot.rectY(
data,
Plot.binX(
{ y: "sum" },
{
fx: "category",
fy: "day_of_week",
x: "order_date",
fill: "category",
y: "orders",
tip: true
}
)
),
Plot.ruleY([0])
],
height: 600
})
Insert cell
Plot.plot({
y: {
tickFormat: "s"
},
marks: [
Plot.areaY(industries, {x: "date", y: "unemployed", fill: "industry"}),
Plot.ruleY([0])
]
})
Insert cell
pizza
Type Table, then Shift-Enter. Ctrl-space for more options.

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