Public
Edited
Oct 20, 2023
Fork of Simple D3
Insert cell
Insert cell
Insert cell
Insert cell
gramScaleDomain = d3.extent(gramScale)
Insert cell
sizeScale = [
16, 200
]
Insert cell
sizeScaleDomain = d3.extent(sizeScale)
Insert cell
Insert cell
gramsToPixels = d3
.scaleLinear()
.domain(d3.extent(gramScale))
.range(d3.extent(sizeScale))
Insert cell
Insert cell
pixelScale = gramScale.map((gram) => gramsToPixels(gram))
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