Published
Edited
Nov 3, 2021
Insert cell
# D3 Bisect Behavior
Insert cell
d3.bisectLeft([1,2,2,2,5],2)
Insert cell
d3.bisectRight([1,2,2,2,5],2)
Insert cell
d3.bisectCenter([1,2,2,2,5],2)
Insert cell
d3.bisectLeft([1,2,2,2,5],2.1)
Insert cell
d3.bisectRight([1,2,2,2,5],2.1)
Insert cell
d3.bisectCenter([1,2,2,2,5],2.1)
Insert cell
d3 = require('d3@7')
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