Public
Edited
Sep 27, 2023
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_20209
X
Date
Y
Subways
Color
Size
Facet X
Facet Y
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
viewof circleColor = Inputs.color({label: "Favorite color", value: "#4682b4"})
Insert cell
viewof selectMetric = Inputs.select(["Subways", "Buses"], {label: "Select one"})
Insert cell
Plot.plot({
marks: [
Plot.dotY(mta_daily_ridership_data__beginning_20209, {
x: "Date",
y: selectMetric,
tip: true,
r: 2,
fill: circleColor
}),
Plot.lineY(mta_daily_ridership_data__beginning_20209, {
x: "Date",
y: selectMetric,
tip: true,
stroke: "lightgray"
})
]
})
Insert cell
Plot.plot({
marks: [
Plot.dot(mta_daily_ridership_data__beginning_20209, {x: "Subways", y: "Buses"})
]
})
Insert cell
Insert cell
a = 10 * 12;
Insert cell
mta_daily_ridership_data__beginning_20209
SELECT * FROM mta_daily_ridership_data__beginning_20209
Insert cell
d3.json("https://data.ny.gov/resource/vxuj-8kew.json")
Insert cell
import { pizzeriaDB } from '@observablehq/pizza-paradise-data'
Insert cell
pizzeriaDB
SELECT * FROM products
Insert cell
myVar=10
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