Public
Edited
Dec 7, 2023
2 forks
Insert cell
Insert cell
Insert cell
Plot.plot({
x:{domain:[0,10]},
y:{domain:[-1.1,1.1]},
marks:[
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.line(x, {x:'i',y:'y'}),
Plot.line(data,{x:'i',y:'max',stroke:'red'})
]
})
Insert cell
Insert cell
Insert cell
x
SELECT i,y, floor(i/${step}) as category, max(y) over(partition by category) as max
FROM x
ORDER BY category
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