Published
Edited
Jul 21, 2021
2 forks
1 star
Insert cell
Insert cell
Insert cell
Insert cell
increment = (array.length - 1) / (n - 1)
Insert cell
indexes = d3.range(n).map(n => Math.round(n * increment))
Insert cell
items = indexes.map(index => array[index])
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