Platform
Resources
Pricing
Sign in
Get started
Robert Plummer
Workspace
Fork
Published
By
Robert Plummer
Edited
Oct 30, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
howManyAre33PercentAbove
=
values
.
reduce
(
(
accumulator
,
currentValue
)
=>
{
if
(
currentValue
>
threshold
)
{
return
accumulator
+
1
;
}
return
accumulator
;
}
,
0
)
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
values
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
highest
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
threshold
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
howManyAre33PercentAbove
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML