Platform
Resources
Pricing
Sign in
Get started
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Fork
Published unlisted
By
Mike Bostock
Edited
Jun 12, 2022
1
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
movies
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML