Published
Edited
Jul 1, 2020
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
let uniqueCount = data.reduce(function(acc,recipient) {
acc[recipient] = (acc[recipient] || 0) + 1
return acc
}, {})
let sorted = Object.entries(uniqueCount).sort((a,b) => {return b[1] - a[1]})
return sorted
}
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