Published unlisted
Edited
Jun 12, 2022
Insert cell
Insert cell
Plot.plot({
marks: [
Plot.areaY(movies, Plot.map({y1: "cumsum"}, {x: "IMDB Rating", y: 1, sort: "IMDB Rating"})),
Plot.ruleY([0])
]
})
Insert cell
Plot.plot({
marks: [
Plot.areaY(movies, Plot.mapY("cumsum", Plot.groupX({y: "count"}, {x: "IMDB Rating"}))),
Plot.ruleY([0])
]
})
Insert cell
Plot.plot({
marks: [
Plot.rectY(movies, Plot.binX({y: "count", cumulative: true}, {x: "IMDB Rating"})),
Plot.ruleY([0])
]
})
Insert cell
movies = FileAttachment("movies.json").json()
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