Platform
Resources
Pricing
Sign in
Get started
Adebiyi's
I came for the knowledge of creating charts for dashboards, but I stayed for the beauty of this craft.
Workspace
Fork
Public
By
adebiyial
Edited
Oct 13, 2023
Fork of
d3.groupSort
1
Insert cell
Insert cell
barley
=
FileAttachment
(
"barley.csv"
)
.
csv
(
{
typed
:
true
}
)
Insert cell
Insert cell
d3
.
rollups
(
barley
,
(
group
)
=>
d3
.
median
(
group
,
(
d
)
=>
d
.
yield
)
,
(
d
)
=>
d
.
variety
)
.
sort
(
(
[
,
a
]
,
[
,
b
]
)
=>
d3
.
ascending
(
a
,
b
)
)
.
map
(
(
[
key
]
)
=>
key
)
Insert cell
Insert cell
d3
.
groupSort
(
barley
,
g
=>
d3
.
median
(
g
,
d
=>
d
.
yield
)
,
d
=>
d
.
variety
)
Insert cell
Insert cell
d3
.
groupSort
(
barley
,
g
=>
-
d3
.
median
(
g
,
d
=>
d
.
yield
)
,
d
=>
d
.
variety
)
Insert cell
Insert cell
d3
.
groupSort
(
barley
,
(
a
,
b
)
=>
d3
.
descending
(
d3
.
median
(
a
,
d
=>
d
.
yield
)
,
d3
.
median
(
b
,
d
=>
d
.
yield
)
)
,
d
=>
d
.
variety
)
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
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
barley
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML