Public
Edited
Apr 3
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.ruleY([0], {stroke: "red", strokeWidth: 2}),
Plot.lineY(aapl, {x: "Date", y: "Close"})
]
})
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.lineY(aapl, {x: "Date", y: "Close"})
]
})
Insert cell
Insert cell
Insert cell
Plot.plot({
y: {0},
marks: [
Plot.lineY(aapl, {x: "Date", y: "Close"})
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
new Date(2020, 0, 1)
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
x: {
domain: [new Date(???), new Date(???)] // Update ??? to set the date domain limits
},
marks: [
Plot.ruleY([0]),
Plot.lineY(aapl, {x: "Date", y: "Close"})
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.dot(candyData, {x: "weight_in_oz", y: "price"})
],

color: {
legend: true,
},
})
Insert cell
Plot.plot({
marks: [
Plot.dot(candyData, {x: "weight_in_oz", y: "price"})
],

color: {green, blue, pink
legend: true,
},
})
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