Published
Edited
Jul 4, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
selectedLetters = {
const list = [...letters].sort((a, b) => b.frequency - a.frequency);
return list
.slice(0, numberOfChars)
.sort((a, b) => (a.letter > b.letter ? 1 : 0));
}
Insert cell
This is a short description for the barchart defined above.
Insert cell
Insert cell
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