Public
Edited
Oct 24, 2024
28 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
<h2>Hello, 2024</h2>
Insert cell
currentWeek = 10
Insert cell
`There are ${17 - currentWeek} weeks left in the semester!!!`
Insert cell
Insert cell
## Chart cell placeholder
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
## Placeholder

- Lollipop chart
- Scatterplot chart
Insert cell
// Plot.plot({
// x: {label: null, tickPadding: 6, tickSize: 0},
// y: {percent: true},
// marks: [
// Plot.ruleX(alphabet, {x: "letter", y: "frequency", strokeWidth: 2}),
// Plot.dot(alphabet, {x: "letter", y: "frequency", fill: "currentColor", r: 4})
// ]
// })
Insert cell
Insert cell
## Placeholder

- Scatterplot (fill: yellow, stroke: steelblue)
Insert cell
Insert cell
energy
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
## Placeholder

- Scatterplot + Linechart
Insert cell
Insert cell
## Placeholder

- chart cell (small multiple)
Insert cell
Insert cell
Insert cell
Insert cell
## Placeholder

- bar chart (rectY, binX)
Insert cell
Insert cell
## Placeholder

- bar chart (barY, groupX)
Insert cell
Insert cell
Insert cell
energy = FileAttachment("us_energy.csv").csv({ typed: true })
Insert cell
olympians
Insert cell
penguins
Insert cell
aapl = FileAttachment("aaplStock.csv").csv({ typed: true })
Insert cell
goog = FileAttachment("googStock.csv").csv({ typed: true })
Insert cell
tsla = FileAttachment("tslaStock.csv").csv({ typed: true })
Insert cell
stocks = aapl
.map((d) => ({ ...d, symbol: "aapl" }))
.concat(
goog.map((d) => ({ ...d, symbol: "goog" })),
tsla.map((d) => ({ ...d, symbol: "tsla" }))
)
.map((d) => ({ ...d, Date: d3.timeParse("%m/%d/%y")(d.Date) }))
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