arlas-d3 / Exports / AbstractHistogram
Class: AbstractHistogram
Hierarchy
AbstractHistogram
Table of contents
Constructors
Properties
- allAxesContext
- barsContext
- brushCornerTooltips
- chartDimensions
- context
- dataDomain
- dataInterval
- fromSetInterval
- hasSelectionExceededData
- histogramParams
- hoveredBucketKey
- isHeightFixed
- isWidthFixed
- minusSign
- noDatabarsContext
- plottingCount
- selectedBars
- selectionInterval
- tooltipCursorContext
- xAxis
- xLabelsAxis
- xTicksAxis
- yDimension
Methods
- clearTooltipCursor
- drawChartAxes
- getAxes
- getDataInterval
- getFollowingLastBucket
- getHistogramDataInterval
- getHistogramMinMaxBorders
- getXDomainExtent
- getXDomainScale
- init
- initializeChartDimensions
- initializeChartHeight
- initializeDescriptionValues
- isValueValid
- plot
- plotBars
- resize
- setDataInterval
- setHTMLElementsOfBrushCornerTooltips
- setHistogramMargins
Constructors
constructor
• new AbstractHistogram()
Defined in
src/histograms/AbstractHistogram.ts:68
Properties
allAxesContext
• Protected
allAxesContext: HistogramSVGG
Defined in
src/histograms/AbstractHistogram.ts:38
barsContext
• Protected
barsContext: HistogramSVGG
Defined in
src/histograms/AbstractHistogram.ts:35
brushCornerTooltips
• brushCornerTooltips: BrushCornerTooltips
Defined in
src/histograms/AbstractHistogram.ts:31
chartDimensions
• Protected
chartDimensions: ChartDimensions
Chart dimensions
Defined in
src/histograms/AbstractHistogram.ts:41
context
• Protected
context: HistogramSVGG
Contexts
Defined in
src/histograms/AbstractHistogram.ts:34
dataDomain
• Protected
dataDomain: HistogramData
[]
Data
Defined in
src/histograms/AbstractHistogram.ts:46
dataInterval
• Protected
dataInterval: number
Defined in
src/histograms/AbstractHistogram.ts:47
fromSetInterval
• Protected
fromSetInterval: boolean
= false
Defined in
src/histograms/AbstractHistogram.ts:54
hasSelectionExceededData
• Protected
hasSelectionExceededData: any
= null
Defined in
src/histograms/AbstractHistogram.ts:52
histogramParams
• histogramParams: HistogramParams
Defined in
src/histograms/AbstractHistogram.ts:30
hoveredBucketKey
• Protected
hoveredBucketKey: number
| Date
Defined in
src/histograms/AbstractHistogram.ts:62
isHeightFixed
• Protected
isHeightFixed: boolean
= false
Defined in
src/histograms/AbstractHistogram.ts:43
isWidthFixed
• Protected
isWidthFixed: boolean
= false
Defined in
src/histograms/AbstractHistogram.ts:42
minusSign
• Protected
minusSign: number
= 1
Defined in
src/histograms/AbstractHistogram.ts:66
noDatabarsContext
• Protected
noDatabarsContext: HistogramSVGG
Defined in
src/histograms/AbstractHistogram.ts:36
plottingCount
• Protected
plottingCount: number
= 0
Defined in
src/histograms/AbstractHistogram.ts:65
selectedBars
• Protected
selectedBars: Set
<number
>
Defined in
src/histograms/AbstractHistogram.ts:53
selectionInterval
• Protected
selectionInterval: SelectedOutputValues
Brush selection
Defined in
src/histograms/AbstractHistogram.ts:50
tooltipCursorContext
• Protected
tooltipCursorContext: HistogramSVGG
Defined in
src/histograms/AbstractHistogram.ts:37
xAxis
• Protected
xAxis: any
Defined in
src/histograms/AbstractHistogram.ts:59
xLabelsAxis
• Protected
xLabelsAxis: any
Defined in
src/histograms/AbstractHistogram.ts:58
xTicksAxis
• Protected
xTicksAxis: any
Axes && ticks
Defined in
src/histograms/AbstractHistogram.ts:57
yDimension
• Protected
yDimension: number
= 1
Defined in
src/histograms/AbstractHistogram.ts:64
Methods
clearTooltipCursor
▸ Protected
clearTooltipCursor(): void
Removes the indicator behind the hovered bucket of the histogram
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:214
drawChartAxes
▸ Protected
drawChartAxes(chartAxes
, leftOffset
): void
Parameters
Name | Type |
---|---|
chartAxes |
ChartAxes | SwimlaneAxes |
leftOffset |
number |
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:216
getAxes
▸ Protected
Abstract
getAxes(): ChartAxes
| SwimlaneAxes
Returns
ChartAxes
| SwimlaneAxes
Defined in
src/histograms/AbstractHistogram.ts:313
getDataInterval
▸ Protected
Abstract
getDataInterval(data
): number
Parameters
Name | Type |
---|---|
data |
HistogramData [] | Map <string , HistogramData []> |
Returns
number
Defined in
src/histograms/AbstractHistogram.ts:312
getFollowingLastBucket
▸ Protected
getFollowingLastBucket(data
): HistogramData
Parameters
Name | Type |
---|---|
data |
any |
Returns
HistogramData
Defined in
src/histograms/AbstractHistogram.ts:160
getHistogramDataInterval
▸ Protected
getHistogramDataInterval(data
): number
Parameters
Name | Type |
---|---|
data |
HistogramData [] |
Returns
number
Defined in
src/histograms/AbstractHistogram.ts:285
getHistogramMinMaxBorders
▸ Protected
getHistogramMinMaxBorders(data
): [number
| Date
, number
| Date
]
Parameters
Name | Type |
---|---|
data |
HistogramData [] |
Returns
[number
| Date
, number
| Date
]
Defined in
src/histograms/AbstractHistogram.ts:153
getXDomainExtent
▸ Protected
getXDomainExtent(data
, selectedStartValue
, selectedEndValue
): (number
| Date
| { valueOf
: () => number
})[]
Parameters
Name | Type |
---|---|
data |
HistogramData [] |
selectedStartValue |
number | Date |
selectedEndValue |
number | Date |
Returns
(number
| Date
| { valueOf
: () => number
})[]
Defined in
src/histograms/AbstractHistogram.ts:179
getXDomainScale
▸ Protected
getXDomainScale(rangeStart
, rangeEnd
): ScaleTime
<number
, number
, never
> | ScaleLinear
<number
, number
, never
>
Create the link between the scale of the chart and the width available
Parameters
Name | Type |
---|---|
rangeStart |
number |
rangeEnd |
number |
Returns
ScaleTime
<number
, number
, never
> | ScaleLinear
<number
, number
, never
>
Defined in
src/histograms/AbstractHistogram.ts:146
init
▸ init(): void
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:74
initializeChartDimensions
▸ Protected
initializeChartDimensions(): void
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:126
initializeChartHeight
▸ Protected
initializeChartHeight(): void
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:135
initializeDescriptionValues
▸ Protected
initializeDescriptionValues(start
, end
, dataInterval
): void
Parameters
Name | Type |
---|---|
start |
number | Date |
end |
number | Date |
dataInterval |
number |
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:117
isValueValid
▸ Protected
isValueValid(bucket
): boolean
Parameters
Name | Type |
---|---|
bucket |
HistogramData |
Returns
boolean
Defined in
src/histograms/AbstractHistogram.ts:281
plot
▸ plot(data
): void
Parameters
Name | Type |
---|---|
data |
HistogramData [] | SwimlaneData |
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:72
plotBars
▸ Protected
plotBars(data
, axes
, xDataDomain
, barWeight?
): void
Parameters
Name | Type |
---|---|
data |
HistogramData [] |
axes |
ChartAxes | SwimlaneAxes |
xDataDomain |
ScaleBand <string > |
barWeight? |
number |
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:266
resize
▸ Abstract
resize(histogramContainer
): void
Parameters
Name | Type |
---|---|
histogramContainer |
HTMLElement |
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:83
setDataInterval
▸ Protected
Abstract
setDataInterval(data
): void
Parameters
Name | Type |
---|---|
data |
HistogramData [] | Map <string , HistogramData []> |
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:311
setHTMLElementsOfBrushCornerTooltips
▸ setHTMLElementsOfBrushCornerTooltips(rightHTMLElement
, leftHTMLElement
): void
initialize a new BrushCornerTooltips object
Parameters
Name | Type |
---|---|
rightHTMLElement |
HTMLElement |
leftHTMLElement |
any |
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:88
setHistogramMargins
▸ Protected
setHistogramMargins(): void
Returns
void
Defined in
src/histograms/AbstractHistogram.ts:96