Public
Edited
Apr 27, 2023
2 forks
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
imagePixelData = extractImageData(image)
Insert cell
groupedPixelData = d3.merge(
d3
.groups(imagePixelData.pixelData, (d) => d.hex)
.sort((a, b) => b[1].length - a[1].length)
.map((d) => d[1])
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
tags = (s) => `${s.replace(" ", "+")}`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {imageInput} from "@mbostock/file-input"
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