arlas-d3 / Exports / AbstractChart

Class: AbstractChart

Hierarchy

AbstractChart

↳↳ ChartBars

↳↳ ChartArea

↳↳ ChartCurve

↳↳ ChartOneDimension

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AbstractChart()

Inherited from

AbstractHistogram.constructor

Defined in

src/histograms/AbstractHistogram.ts:76

Properties

NO_DATA_STRIPES_PATTERN

Protected NO_DATA_STRIPES_PATTERN: string = 'M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2'

Defined in

src/histograms/charts/AbstractChart.ts:41


NO_DATA_STRIPES_SIZE

Protected NO_DATA_STRIPES_SIZE: number = 10

Defined in

src/histograms/charts/AbstractChart.ts:42


START_Y_FROM_MIN_STRIPES_PATTERN

Protected START_Y_FROM_MIN_STRIPES_PATTERN: string = 'M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2'

Defined in

src/histograms/charts/AbstractChart.ts:39


START_Y_FROM_MIN_STRIPES_SIZE

Protected START_Y_FROM_MIN_STRIPES_SIZE: number = 4

Defined in

src/histograms/charts/AbstractChart.ts:40


allAxesContext

Protected allAxesContext: any

Inherited from

AbstractHistogram.allAxesContext

Defined in

src/histograms/AbstractHistogram.ts:42


barsContext

Protected barsContext: any

Inherited from

AbstractHistogram.barsContext

Defined in

src/histograms/AbstractHistogram.ts:38


brushContext

Protected brushContext: any

Inherited from

AbstractHistogram.brushContext

Defined in

src/histograms/AbstractHistogram.ts:40


brushCornerTooltips

brushCornerTooltips: BrushCornerTooltips

Inherited from

AbstractHistogram.brushCornerTooltips

Defined in

src/histograms/AbstractHistogram.ts:32


brushHandles

Protected brushHandles: any

Inherited from

AbstractHistogram.brushHandles

Defined in

src/histograms/AbstractHistogram.ts:57


brushHandlesHeight

Protected brushHandlesHeight: number = null

Inherited from

AbstractHistogram.brushHandlesHeight

Defined in

src/histograms/AbstractHistogram.ts:56


chartAxes

Protected chartAxes: ChartAxes

Defined in

src/histograms/charts/AbstractChart.ts:37


chartDimensions

Protected chartDimensions: ChartDimensions

Chart dimensions

Inherited from

AbstractHistogram.chartDimensions

Defined in

src/histograms/AbstractHistogram.ts:45


clipPathContext

Protected clipPathContext: any

Defined in

src/histograms/charts/AbstractChart.ts:44


context

Protected context: any

Contexts

Inherited from

AbstractHistogram.context

Defined in

src/histograms/AbstractHistogram.ts:37


currentClipPathContext

Protected currentClipPathContext: any

Defined in

src/histograms/charts/AbstractChart.ts:45


dataDomain

Protected dataDomain: HistogramData[]

Data

Inherited from

AbstractHistogram.dataDomain

Defined in

src/histograms/AbstractHistogram.ts:50


dataInterval

Protected dataInterval: number

Inherited from

AbstractHistogram.dataInterval

Defined in

src/histograms/AbstractHistogram.ts:51


fromSetInterval

Protected fromSetInterval: boolean = false

Inherited from

AbstractHistogram.fromSetInterval

Defined in

src/histograms/AbstractHistogram.ts:62


hasSelectionExceededData

Protected hasSelectionExceededData: any = null

Inherited from

AbstractHistogram.hasSelectionExceededData

Defined in

src/histograms/AbstractHistogram.ts:60


histogramParams

histogramParams: HistogramParams

Inherited from

AbstractHistogram.histogramParams

Defined in

src/histograms/AbstractHistogram.ts:31


hoveredBucketKey

Protected hoveredBucketKey: number | Date

Inherited from

AbstractHistogram.hoveredBucketKey

Defined in

src/histograms/AbstractHistogram.ts:70


isBrushed

Protected isBrushed: boolean = false

Inherited from

AbstractHistogram.isBrushed

Defined in

src/histograms/AbstractHistogram.ts:58


isBrushing

isBrushing: boolean = false

Inherited from

AbstractHistogram.isBrushing

Defined in

src/histograms/AbstractHistogram.ts:34


isHeightFixed

Protected isHeightFixed: boolean = false

Inherited from

AbstractHistogram.isHeightFixed

Defined in

src/histograms/AbstractHistogram.ts:47


isWidthFixed

Protected isWidthFixed: boolean = false

Inherited from

AbstractHistogram.isWidthFixed

Defined in

src/histograms/AbstractHistogram.ts:46


minusSign

Protected minusSign: number = 1

Inherited from

AbstractHistogram.minusSign

Defined in

src/histograms/AbstractHistogram.ts:74


noDatabarsContext

Protected noDatabarsContext: any

Inherited from

AbstractHistogram.noDatabarsContext

Defined in

src/histograms/AbstractHistogram.ts:39


plottingCount

Protected plottingCount: number = 0

Inherited from

AbstractHistogram.plottingCount

Defined in

src/histograms/AbstractHistogram.ts:73


rectangleCurrentClipper

Protected rectangleCurrentClipper: any

Defined in

src/histograms/charts/AbstractChart.ts:46


selectedBars

Protected selectedBars: Set<number>

Inherited from

AbstractHistogram.selectedBars

Defined in

src/histograms/AbstractHistogram.ts:61


selectedIntervals

Protected selectedIntervals: Map<string, { rect: any ; startEndValues: SelectedOutputValues }>

Defined in

src/histograms/charts/AbstractChart.ts:47


selectionBrush

Protected selectionBrush: BrushBehavior<any>

Brush selection

Inherited from

AbstractHistogram.selectionBrush

Defined in

src/histograms/AbstractHistogram.ts:54


selectionInterval

Protected selectionInterval: SelectedOutputValues

Inherited from

AbstractHistogram.selectionInterval

Defined in

src/histograms/AbstractHistogram.ts:55


tooltipCursorContext

Protected tooltipCursorContext: any

Inherited from

AbstractHistogram.tooltipCursorContext

Defined in

src/histograms/AbstractHistogram.ts:41


xAxis

Protected xAxis: any

Inherited from

AbstractHistogram.xAxis

Defined in

src/histograms/AbstractHistogram.ts:67


xLabelsAxis

Protected xLabelsAxis: any

Inherited from

AbstractHistogram.xLabelsAxis

Defined in

src/histograms/AbstractHistogram.ts:66


xTicksAxis

Protected xTicksAxis: any

Axes && ticks

Inherited from

AbstractHistogram.xTicksAxis

Defined in

src/histograms/AbstractHistogram.ts:65


yDimension

Protected yDimension: number = 1

Inherited from

AbstractHistogram.yDimension

Defined in

src/histograms/AbstractHistogram.ts:72


yStartsFromMin

Protected yStartsFromMin: boolean = false

Defined in

src/histograms/charts/AbstractChart.ts:38

Methods

addSelectionBrush

Protected addSelectionBrush(chartAxes, leftOffset): void

Parameters

Name Type
chartAxes ChartAxes
leftOffset number

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:625


addStrippedPattern

Protected addStrippedPattern(id, pattern, size, cssClass): void

Parameters

Name Type
id string
pattern string
size number
cssClass string

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:518


applyFormatOnXticks

Protected applyFormatOnXticks(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:530


applyStyleOnClipper

Protected applyStyleOnClipper(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:726


applyStyleOnSelectedBars

Protected applyStyleOnSelectedBars(barsContext): void

Parameters

Name Type
barsContext any

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:659


applyStyleOnSelection

Protected Abstract applyStyleOnSelection(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:742


clearTooltipCursor

Protected clearTooltipCursor(): void

Removes the indicator behind the hovered bucket of the histogram

Returns

void

Inherited from

AbstractHistogram.clearTooltipCursor

Defined in

src/histograms/AbstractHistogram.ts:218


createChartAxes

Protected createChartAxes(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:299


customizeData

Protected customizeData(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:281


drawChartAxes

Protected drawChartAxes(chartAxes, leftOffset): void

Parameters

Name Type
chartAxes ChartAxes | SwimlaneAxes
leftOffset number

Returns

void

Inherited from

AbstractHistogram.drawChartAxes

Defined in

src/histograms/AbstractHistogram.ts:220


drawTooltipCursor

Protected drawTooltipCursor(data, axes, chartIsToSides?): void

Draws a indicator behind the hovered bucket of the histogram. This has as objective to highlight it on the histogram

Parameters

Name Type
data HistogramData[]
axes ChartAxes
chartIsToSides? Map<string, string>

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:444


drawYAxis

Protected drawYAxis(chartAxes, chartIdsToSide?, chartId?): void

Parameters

Name Type
chartAxes ChartAxes
chartIdsToSide? Map<string, string>
chartId? string

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:355


getAppendedRectangle

Protected getAppendedRectangle(start, end): any

Parameters

Name Type
start number | Date
end number | Date

Returns

any

Defined in

src/histograms/charts/AbstractChart.ts:717


getAxes

Protected getAxes(): ChartAxes

Returns

ChartAxes

Overrides

AbstractHistogram.getAxes

Defined in

src/histograms/charts/AbstractChart.ts:621


getDataInterval

Protected getDataInterval(data): number

Parameters

Name Type
data HistogramData[]

Returns

number

Overrides

AbstractHistogram.getDataInterval

Defined in

src/histograms/charts/AbstractChart.ts:542


getEndPosition

Protected Abstract getEndPosition(data, index): number

Parameters

Name Type
data HistogramData[]
index number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:744


getFollowingLastBucket

Protected getFollowingLastBucket(data): HistogramData

Parameters

Name Type
data any

Returns

HistogramData

Inherited from

AbstractHistogram.getFollowingLastBucket

Defined in

src/histograms/AbstractHistogram.ts:164


getHistogramDataInterval

Protected getHistogramDataInterval(data): number

Parameters

Name Type
data HistogramData[]

Returns

number

Inherited from

AbstractHistogram.getHistogramDataInterval

Defined in

src/histograms/AbstractHistogram.ts:358


getHistogramMinMaxBorders

Protected getHistogramMinMaxBorders(data): [number | Date, number | Date]

Parameters

Name Type
data HistogramData[]

Returns

[number | Date, number | Date]

Inherited from

AbstractHistogram.getHistogramMinMaxBorders

Defined in

src/histograms/AbstractHistogram.ts:157


getIntervalMiddlePositon

Protected getIntervalMiddlePositon(chartAxes, startvalue, endvalue): number

Parameters

Name Type
chartAxes ChartAxes
startvalue number
endvalue number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:498


getSelectedBars

Protected getSelectedBars(startvalue, endvalue): number[]

Parameters

Name Type
startvalue number
endvalue number

Returns

number[]

Defined in

src/histograms/charts/AbstractChart.ts:504


getStartPosition

Protected Abstract getStartPosition(data, index): number

Parameters

Name Type
data HistogramData[]
index number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:743


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 })[]

Inherited from

AbstractHistogram.getXDomainExtent

Defined in

src/histograms/AbstractHistogram.ts:183


getXDomainScale

Protected getXDomainScale(): any

Returns

any

Inherited from

AbstractHistogram.getXDomainScale

Defined in

src/histograms/AbstractHistogram.ts:151


getbucketInterval

Protected getbucketInterval(bucketInterval, dataType): Object

Parameters

Name Type
bucketInterval number
dataType DataType

Returns

Object

Name Type
unit? string
value number

Defined in

src/histograms/charts/AbstractChart.ts:546


init

init(): void

Returns

void

Inherited from

AbstractHistogram.init

Defined in

src/histograms/AbstractHistogram.ts:82


initializeChartDimensions

Protected initializeChartDimensions(): void

Returns

void

Overrides

AbstractHistogram.initializeChartDimensions

Defined in

src/histograms/charts/AbstractChart.ts:283


initializeChartHeight

Protected initializeChartHeight(): void

Returns

void

Inherited from

AbstractHistogram.initializeChartHeight

Defined in

src/histograms/AbstractHistogram.ts:143


initializeDescriptionValues

Protected initializeDescriptionValues(start, end, dataInterval): void

Parameters

Name Type
start number | Date
end number | Date
dataInterval number

Returns

void

Inherited from

AbstractHistogram.initializeDescriptionValues

Defined in

src/histograms/AbstractHistogram.ts:125


isValueValid

Protected isValueValid(bucket): boolean

Parameters

Name Type
bucket HistogramData

Returns

boolean

Inherited from

AbstractHistogram.isValueValid

Defined in

src/histograms/AbstractHistogram.ts:285


leaveRemove

leaveRemove(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:150


moveDataByHalfInterval

Protected moveDataByHalfInterval(data): HistogramData[]

Parameters

Name Type
data HistogramData[]

Returns

HistogramData[]

Defined in

src/histograms/charts/AbstractChart.ts:277


onSelectionDoubleClick

Protected onSelectionDoubleClick(axes): void

Parameters

Name Type
axes ChartAxes

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:215


overRemove

overRemove(e): void

Parameters

Name Type
e any

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:138


plot

plot(inputData): void

Parameters

Name Type
inputData HistogramData[]

Returns

void

Overrides

AbstractHistogram.plot

Defined in

src/histograms/charts/AbstractChart.ts:49


plotBars

Protected plotBars(data, axes, xDataDomain, barWeight?): void

Parameters

Name Type
data HistogramData[]
axes ChartAxes | SwimlaneAxes
xDataDomain any
barWeight? number

Returns

void

Inherited from

AbstractHistogram.plotBars

Defined in

src/histograms/AbstractHistogram.ts:270


plotChart

Protected Abstract plotChart(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:741


redrawSelectedIntervals

redrawSelectedIntervals(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:167


removeSelectInterval

removeSelectInterval(id): void

Parameters

Name Type
id string

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:112


resize

resize(histogramContainer): void

Parameters

Name Type
histogramContainer HTMLElement

Returns

void

Overrides

AbstractHistogram.resize

Defined in

src/histograms/charts/AbstractChart.ts:156


resizeSelectedIntervals

Protected resizeSelectedIntervals(chartAxes): void

Parameters

Name Type
chartAxes ChartAxes

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:262


setBrushCornerTooltipsPositions

Protected setBrushCornerTooltipsPositions(): void

This method is called whenever the brush is being moved. It sets the positions the brush's left and right corner tooltips.

Returns

void

Inherited from

AbstractHistogram.setBrushCornerTooltipsPositions

Defined in

src/histograms/AbstractHistogram.ts:292


setBrushHorizontalTooltipsXPositions

Protected setBrushHorizontalTooltipsXPositions(leftPosition, rightPosition): void

Parameters

Name Type
leftPosition number
rightPosition number

Returns

void

Inherited from

AbstractHistogram.setBrushHorizontalTooltipsXPositions

Defined in

src/histograms/AbstractHistogram.ts:344


setBrushHorizontalTooltipsYPositions

Protected setBrushHorizontalTooltipsYPositions(): void

Returns

void

Inherited from

AbstractHistogram.setBrushHorizontalTooltipsYPositions

Defined in

src/histograms/AbstractHistogram.ts:349


setBrushVerticalTooltipsXPositions

Protected setBrushVerticalTooltipsXPositions(leftPosition, rightPosition): void

Parameters

Name Type
leftPosition number
rightPosition number

Returns

void

Inherited from

AbstractHistogram.setBrushVerticalTooltipsXPositions

Defined in

src/histograms/AbstractHistogram.ts:330


setBrushVerticalTooltipsYPositions

Protected setBrushVerticalTooltipsYPositions(): void

Returns

void

Inherited from

AbstractHistogram.setBrushVerticalTooltipsYPositions

Defined in

src/histograms/AbstractHistogram.ts:335


setDataInterval

Protected setDataInterval(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Overrides

AbstractHistogram.setDataInterval

Defined in

src/histograms/charts/AbstractChart.ts:538


setHTMLElementsOfBrushCornerTooltips

setHTMLElementsOfBrushCornerTooltips(rightHTMLElement, leftHTMLElement): void

initialize a new BrushCornerTooltips object

Parameters

Name Type
rightHTMLElement HTMLElement
leftHTMLElement any

Returns

void

Inherited from

AbstractHistogram.setHTMLElementsOfBrushCornerTooltips

Defined in

src/histograms/AbstractHistogram.ts:96


setHistogramMargins

Protected setHistogramMargins(): void

Returns

void

Inherited from

AbstractHistogram.setHistogramMargins

Defined in

src/histograms/AbstractHistogram.ts:104


setSelectedInterval

setSelectedInterval(selectedInputValues): void

Parameters

Name Type
selectedInputValues SelectedInputValues

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:78


setTooltipPositions

Protected setTooltipPositions(data, event, chartIsToSides?): void

Parameters

Name Type
data HistogramData[]
event MouseEvent
chartIsToSides? Map<string, string>

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:446


setTooltipXposition

Protected Abstract setTooltipXposition(xPosition): number

Parameters

Name Type
xPosition number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:745


setTooltipYposition

Protected Abstract setTooltipYposition(yPosition): number

Parameters

Name Type
yPosition number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:746


setVerticalTooltipsWidth

Protected setVerticalTooltipsWidth(): void

Returns

void

Inherited from

AbstractHistogram.setVerticalTooltipsWidth

Defined in

src/histograms/AbstractHistogram.ts:326


showTooltips

Protected showTooltips(data, chartIsToSides?): void

Parameters

Name Type
data HistogramData[]
chartIsToSides? Map<string, string>

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:424


updateSelectionStyle

Protected updateSelectionStyle(id): void

Parameters

Name Type
id string

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:204