Skip to main content

Function: createHistogramBins()

createHistogramBins(values, numberOfBins): object

Defined in: packages/echarts/src/histogram/component/utils.ts:10

Create histogram bins.

Parameters

values

number[]

The values of the variable.

numberOfBins

number = 5

The number of bins to create.

Returns

object

The histogram bins.

barDataIndexes

barDataIndexes: number[][]

breaks

breaks: number[]

counts

counts: number[]

histogramData

histogramData: HistogramDataProps[]

indices

indices: number[][]