Table of Contents
- Statistics
d3.min(array[, accessor])
d3.max(array[, accessor])
d3.extent(array[, accessor])
d3.sum(array[, accessor])
d3.mean(array[, accessor])
d3.median(array[, accessor])
d3.quantile(array, p[, accessor])
d3.variance(array[, accessor])
d3.deviation(array[, accessor])
- Search
d3.scan(array[, comparator])
d3.bisectLeft(array, x[, lo[, hi]])
d3.bisect(array, x[, lo[, hi]])
d3.bisectRight(array, x[, lo[, hi]])
d3.bisector(accessor)
d3.bisector(comparator)
bisector.left(array, x[, lo[, hi]])
bisector.right(array, x[, lo[, hi]])
d3.ascending(a, b)
d3.descending(a, b)
- Transformations
d3.cross(a, b[, reducer])
d3.merge(arrays)
d3.pairs(array[, reducer])
d3.permute(array, indexes)
d3.shuffle(array[, lo[, hi]])
d3.ticks(start, stop, count)
d3.tickIncrement(start, stop, count)
d3.tickStep(start, stop, count)
d3.range([start, ]stop[, step])
d3.transpose(matrix)
d3.zip(arrays…)
- Histograms
Statistics
d3.min(array[, accessor])
d3.max(array[, accessor])
d3.extent(array[, accessor])
d3.sum(array[, accessor])
d3.mean(array[, accessor])
- If the array is empty, returns undefined.
- This method ignores undefined and NaN values
d3.quantile(array, p[, accessor])
d3.variance(array[, accessor])
d3.deviation(array[, accessor])
Search
d3.scan(array[, comparator])
d3.bisectLeft(array, x[, lo[, hi]])
d3.bisect(array, x[, lo[, hi]])
d3.bisectRight(array, x[, lo[, hi]])
d3.bisector(accessor)
d3.bisector(comparator)
bisector.left(array, x[, lo[, hi]])
bisector.right(array, x[, lo[, hi]])
d3.ascending(a, b)
d3.descending(a, b)
d3.cross(a, b[, reducer])
d3.merge(arrays)
d3.pairs(array[, reducer])
d3.permute(array, indexes)
d3.shuffle(array[, lo[, hi]])
d3.ticks(start, stop, count)
d3.tickIncrement(start, stop, count)
d3.tickStep(start, stop, count)
d3.range([start, ]stop[, step])
d3.transpose(matrix)
d3.zip(arrays…)
Histograms
histogram(data)
histogram.value([value])
histogram.domain([domain])
histogram.thresholds([count])
histogram.thresholds([thresholds])