arlas-d3 / Exports / HistogramUtils

Class: HistogramUtils

Table of contents

Constructors

Methods

Constructors

constructor

new HistogramUtils()

Methods

generateUID

Static generateUID(): string

Returns

string

Defined in

src/histograms/utils/HistogramUtils.ts:389


getColor

Static getColor(zeroToOne, paletteColors): Instance

Parameters

Name Type
zeroToOne number
paletteColors string | [number, number]

Returns

Instance

Defined in

src/histograms/utils/HistogramUtils.ts:271


getFormatFromDateInterval

Static getFormatFromDateInterval(dateInterval): string

Parameters

Name Type
dateInterval any

Returns

string

Defined in

src/histograms/utils/HistogramUtils.ts:357


getIntervalGUID

Static getIntervalGUID(start, end): string

Parameters

Name Type
start number | Date
end number | Date

Returns

string

Defined in

src/histograms/utils/HistogramUtils.ts:393


getRoundPrecision

Static getRoundPrecision(dataInterval): number

Parameters

Name Type
dataInterval number

Returns

number

Defined in

src/histograms/utils/HistogramUtils.ts:403


isSelectionBeyondDataDomain

Static isSelectionBeyondDataDomain(selectedInputValues, inputData, intervalSelectedMap): boolean

Parameters

Name Type
selectedInputValues SelectedInputValues
inputData HistogramData[]
intervalSelectedMap Map<string, { values: SelectedOutputValues ; x_position: number }>

Returns

boolean

Defined in

src/histograms/utils/HistogramUtils.ts:200


isValueValid

Static isValueValid(bucket): boolean

Parameters

Name Type
bucket HistogramData

Returns

boolean

Defined in

src/histograms/utils/HistogramUtils.ts:352


numToString

Static numToString(value): string

Parameters

Name Type
value number

Returns

string

Defined in

src/histograms/utils/HistogramUtils.ts:427


parseDataKey

Static parseDataKey(inputData, dataType): HistogramData[]

Parameters

Name Type
inputData HistogramData[]
dataType DataType

Returns

HistogramData[]

Defined in

src/histograms/utils/HistogramUtils.ts:223


parseSelectedValues

Static parseSelectedValues(selectedValues, dataType): SelectedOutputValues

Parameters

Name Type
selectedValues SelectedInputValues
dataType DataType

Returns

SelectedOutputValues

Defined in

src/histograms/utils/HistogramUtils.ts:236


parseSwimlaneDataKey

Static parseSwimlaneDataKey(swimlanesInputData, dataType): Map<string, HistogramData[]>

Parameters

Name Type
swimlanesInputData Map<string, { key: number ; value: number }[]>
dataType DataType

Returns

Map<string, HistogramData[]>

Defined in

src/histograms/utils/HistogramUtils.ts:252


round

Static round(value, precision): number

Parameters

Name Type
value any
precision any

Returns

number

Defined in

src/histograms/utils/HistogramUtils.ts:417


splitData

Static splitData(data): [HistogramData[][], HistogramData[][]]

Parameters

Name Type
data HistogramData[]

Returns

[HistogramData[][], HistogramData[][]]

Defined in

src/histograms/utils/HistogramUtils.ts:450


toString

Static toString(value, histogramParams, dateInterval?): string

Parameters

Name Type
value number | Date
histogramParams HistogramParams
dateInterval? number

Returns

string

Defined in

src/histograms/utils/HistogramUtils.ts:296