Public
Edited
Apr 8, 2024
17 forks
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.dot(salamanders, {
x: "totalLength",
y: "weight",
fill: "creekSection",
opacity: 0.45
})
]
})
Insert cell
Insert cell
stocksBig3 = stocks.filter(
(d) =>
d.stock_symbol === "AAPL" ||
d.stock_symbol === "GOOGL" ||
d.stock_symbol === "TSLA"
)
Insert cell
Plot.plot({
marks: [
Plot.lineY(stocksBig3, { x: "date", y: "close", stroke: "stock_symbol" })
],
color: { legend: true }
})
Insert cell
viewof pickColor = Inputs.color({ label: "Favorite color", value: "#4682b4" })
Insert cell
wb = FileAttachment("wb_tidy.csv").csv({ typed: true })
Insert cell
wb2010 = wb.filter((d) => d.year === 2010)
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.dot(wb2010, { x: "gdp", y: "life_exp", fill: "gray" }),
],
x: { type: "log" },
margin: 50
})
Insert cell
viewof selectRegion = Inputs.select(
wb.map((d) => d.region),
{ label: "Select region:", unique: true }
)
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