Skip to content

Function: d3pHistogram() ​

ts
function d3pHistogram(values, opts?): D3PHistogramBin[];

Defined in: core/transforms.ts:217

Bin numbers (d3.bin). thresholds is a number of bins, or the edges of the bins (the first and last included, so [0, 4, 8, 12] makes three bins); domain limits the range.

Parameters ​

values ​

Iterable<number>

opts? ​

domain? ​

[number, number]

thresholds? ​

number | number[]

Returns ​

D3PHistogramBin[]