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:68

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:59


NO_DATA_STRIPES_SIZE

Protected NO_DATA_STRIPES_SIZE: number = 10

Defined in

src/histograms/charts/AbstractChart.ts:60


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:57


START_Y_FROM_MIN_STRIPES_SIZE

Protected START_Y_FROM_MIN_STRIPES_SIZE: number = 4

Defined in

src/histograms/charts/AbstractChart.ts:58


allAxesContext

Protected allAxesContext: HistogramSVGG

Inherited from

AbstractHistogram.allAxesContext

Defined in

src/histograms/AbstractHistogram.ts:38


barsContext

Protected barsContext: HistogramSVGG

Inherited from

AbstractHistogram.barsContext

Defined in

src/histograms/AbstractHistogram.ts:35


brush

brush: Brush

Defined in

src/histograms/charts/AbstractChart.ts:63


brushCornerTooltips

brushCornerTooltips: BrushCornerTooltips

Inherited from

AbstractHistogram.brushCornerTooltips

Defined in

src/histograms/AbstractHistogram.ts:31


chartAxes

Protected chartAxes: ChartAxes

Defined in

src/histograms/charts/AbstractChart.ts:55


chartDimensions

Protected chartDimensions: ChartDimensions

Chart dimensions

Inherited from

AbstractHistogram.chartDimensions

Defined in

src/histograms/AbstractHistogram.ts:41


clipPathContext

Protected clipPathContext: HistogramSVGClipPath

Defined in

src/histograms/charts/AbstractChart.ts:64


context

Protected context: HistogramSVGG

Contexts

Inherited from

AbstractHistogram.context

Defined in

src/histograms/AbstractHistogram.ts:34


currentClipPathContext

Protected currentClipPathContext: HistogramSVGClipPath

Defined in

src/histograms/charts/AbstractChart.ts:65


dataDomain

Protected dataDomain: HistogramData[]

Data

Inherited from

AbstractHistogram.dataDomain

Defined in

src/histograms/AbstractHistogram.ts:46


dataInterval

Protected dataInterval: number

Inherited from

AbstractHistogram.dataInterval

Defined in

src/histograms/AbstractHistogram.ts:47


fromSetInterval

Protected fromSetInterval: boolean = false

Inherited from

AbstractHistogram.fromSetInterval

Defined in

src/histograms/AbstractHistogram.ts:54


hasSelectionExceededData

Protected hasSelectionExceededData: any = null

Inherited from

AbstractHistogram.hasSelectionExceededData

Defined in

src/histograms/AbstractHistogram.ts:52


histogramParams

histogramParams: HistogramParams

Inherited from

AbstractHistogram.histogramParams

Defined in

src/histograms/AbstractHistogram.ts:30


hoveredBucketKey

Protected hoveredBucketKey: number | Date

Inherited from

AbstractHistogram.hoveredBucketKey

Defined in

src/histograms/AbstractHistogram.ts:62


isHeightFixed

Protected isHeightFixed: boolean = false

Inherited from

AbstractHistogram.isHeightFixed

Defined in

src/histograms/AbstractHistogram.ts:43


isWidthFixed

Protected isWidthFixed: boolean = false

Inherited from

AbstractHistogram.isWidthFixed

Defined in

src/histograms/AbstractHistogram.ts:42


minusSign

Protected minusSign: number = 1

Inherited from

AbstractHistogram.minusSign

Defined in

src/histograms/AbstractHistogram.ts:66


noDatabarsContext

Protected noDatabarsContext: HistogramSVGG

Inherited from

AbstractHistogram.noDatabarsContext

Defined in

src/histograms/AbstractHistogram.ts:36


plottingCount

Protected plottingCount: number = 0

Inherited from

AbstractHistogram.plottingCount

Defined in

src/histograms/AbstractHistogram.ts:65


rectangleCurrentClipper

Protected rectangleCurrentClipper: HistogramSVGRect

Defined in

src/histograms/charts/AbstractChart.ts:66


selectedBars

Protected selectedBars: Set<number>

Inherited from

AbstractHistogram.selectedBars

Defined in

src/histograms/AbstractHistogram.ts:53


selectedIntervals

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

Defined in

src/histograms/charts/AbstractChart.ts:67


selectionInterval

Protected selectionInterval: SelectedOutputValues

Brush selection

Inherited from

AbstractHistogram.selectionInterval

Defined in

src/histograms/AbstractHistogram.ts:50


tooltipCursorContext

Protected tooltipCursorContext: HistogramSVGG

Inherited from

AbstractHistogram.tooltipCursorContext

Defined in

src/histograms/AbstractHistogram.ts:37


xAxis

Protected xAxis: any

Inherited from

AbstractHistogram.xAxis

Defined in

src/histograms/AbstractHistogram.ts:59


xLabelsAxis

Protected xLabelsAxis: any

Inherited from

AbstractHistogram.xLabelsAxis

Defined in

src/histograms/AbstractHistogram.ts:58


xTicksAxis

Protected xTicksAxis: any

Axes && ticks

Inherited from

AbstractHistogram.xTicksAxis

Defined in

src/histograms/AbstractHistogram.ts:57


yDimension

Protected yDimension: number = 1

Inherited from

AbstractHistogram.yDimension

Defined in

src/histograms/AbstractHistogram.ts:64


yStartsFromMin

Protected yStartsFromMin: boolean = false

Defined in

src/histograms/charts/AbstractChart.ts:56

Methods

addSelectionBrush

Protected addSelectionBrush(selectionType, chartAxes, leftOffset): void

Parameters

Name Type
selectionType SelectionType
chartAxes ChartAxes
leftOffset number

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:750


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:643


applyFormatOnXticks

Protected applyFormatOnXticks(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:655


applyStyleOnClipper

Protected applyStyleOnClipper(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:836


applyStyleOnSelectedBars

Protected applyStyleOnSelectedBars(barsContext): void

Parameters

Name Type
barsContext HistogramSVGG

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:769


applyStyleOnSelection

Protected Abstract applyStyleOnSelection(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:915


checkDomainInitialized

Protected checkDomainInitialized(): boolean

Returns

boolean

Defined in

src/histograms/charts/AbstractChart.ts:984


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:214


createChartAxes

Protected createChartAxes(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:424


createChartXAxes

Protected createChartXAxes(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:383


customizeData

Protected customizeData(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:365


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:216


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:561


drawYAxis

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

Parameters

Name Type
chartAxes ChartAxes
chartIdsToSide? Map<string, "left" | "right">
chartId? string

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:470


extendData

Protected extendData(data): HistogramData[]

When the selection is wider than the range of the data, adds "fake" buckets, for the x axis to be fully drawn

Parameters

Name Type Description
data HistogramData[] Data to plot

Returns

HistogramData[]

Extended data to fit the selection

Defined in

src/histograms/charts/AbstractChart.ts:859


getAppendedRectangle

Protected getAppendedRectangle(start, end): HistogramSVGRect

Parameters

Name Type
start number | Date
end number | Date

Returns

HistogramSVGRect

Defined in

src/histograms/charts/AbstractChart.ts:827


getAxes

Protected getAxes(): ChartAxes

Returns

ChartAxes

Overrides

AbstractHistogram.getAxes

Defined in

src/histograms/charts/AbstractChart.ts:746


getDataInterval

Protected getDataInterval(data): number

Parameters

Name Type
data HistogramData[]

Returns

number

Overrides

AbstractHistogram.getDataInterval

Defined in

src/histograms/charts/AbstractChart.ts:667


getEndPosition

Protected Abstract getEndPosition(data, index): number

Parameters

Name Type
data HistogramData[]
index number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:917


getFollowingLastBucket

Protected getFollowingLastBucket(data): HistogramData

Parameters

Name Type
data any

Returns

HistogramData

Inherited from

AbstractHistogram.getFollowingLastBucket

Defined in

src/histograms/AbstractHistogram.ts:160


getHistogramDataInterval

Protected getHistogramDataInterval(data): number

Parameters

Name Type
data HistogramData[]

Returns

number

Inherited from

AbstractHistogram.getHistogramDataInterval

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]

Inherited from

AbstractHistogram.getHistogramMinMaxBorders

Defined in

src/histograms/AbstractHistogram.ts:153


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:623


getSelectedBars

Protected getSelectedBars(startvalue, endvalue): number[]

Parameters

Name Type
startvalue number
endvalue number

Returns

number[]

Defined in

src/histograms/charts/AbstractChart.ts:629


getStartPosition

Protected Abstract getStartPosition(data, index): number

Parameters

Name Type
data HistogramData[]
index number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:916


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: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>

Inherited from

AbstractHistogram.getXDomainScale

Defined in

src/histograms/AbstractHistogram.ts:146


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:671


init

init(): void

Returns

void

Inherited from

AbstractHistogram.init

Defined in

src/histograms/AbstractHistogram.ts:74


initializeChartDimensions

Protected initializeChartDimensions(): void

Returns

void

Overrides

AbstractHistogram.initializeChartDimensions

Defined in

src/histograms/charts/AbstractChart.ts:367


initializeChartHeight

Protected initializeChartHeight(): void

Returns

void

Inherited from

AbstractHistogram.initializeChartHeight

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

Inherited from

AbstractHistogram.initializeDescriptionValues

Defined in

src/histograms/AbstractHistogram.ts:117


isValueValid

Protected isValueValid(bucket): boolean

Parameters

Name Type
bucket HistogramData

Returns

boolean

Inherited from

AbstractHistogram.isValueValid

Defined in

src/histograms/AbstractHistogram.ts:281


moveDataByHalfInterval

Protected moveDataByHalfInterval(data): HistogramData[]

Parameters

Name Type
data HistogramData[]

Returns

HistogramData[]

Defined in

src/histograms/charts/AbstractChart.ts:361


onSelectionDoubleClick

Protected onSelectionDoubleClick(axes): void

Parameters

Name Type
axes ChartAxes

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:299


plot

plot(inputData): void

Parameters

Name Type
inputData HistogramData[]

Returns

void

Overrides

AbstractHistogram.plot

Defined in

src/histograms/charts/AbstractChart.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

Inherited from

AbstractHistogram.plotBars

Defined in

src/histograms/AbstractHistogram.ts:266


plotChart

Protected Abstract plotChart(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:914


redrawSelectedIntervals

redrawSelectedIntervals(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:249


removeSelectInterval

removeSelectInterval(id): void

Parameters

Name Type
id string

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:212


resize

resize(histogramContainer): void

Parameters

Name Type
histogramContainer HTMLElement

Returns

void

Overrides

AbstractHistogram.resize

Defined in

src/histograms/charts/AbstractChart.ts:238


resizeSelectedIntervals

Protected resizeSelectedIntervals(chartAxes): void

Parameters

Name Type
chartAxes ChartAxes

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:346


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

Defined in

src/histograms/charts/AbstractChart.ts:105


setBrushHorizontalTooltipsXPositions

Protected setBrushHorizontalTooltipsXPositions(leftPosition, rightPosition): void

Parameters

Name Type
leftPosition number
rightPosition number

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:159


setBrushHorizontalTooltipsYPositions

Protected setBrushHorizontalTooltipsYPositions(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:164


setBrushVerticalTooltipsXPositions

Protected setBrushVerticalTooltipsXPositions(leftPosition, rightPosition): void

Parameters

Name Type
leftPosition number
rightPosition number

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:143


setBrushVerticalTooltipsYPositions

Protected setBrushVerticalTooltipsYPositions(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:150


setDataInterval

Protected setDataInterval(data): void

Parameters

Name Type
data HistogramData[]

Returns

void

Overrides

AbstractHistogram.setDataInterval

Defined in

src/histograms/charts/AbstractChart.ts:663


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:88


setHistogramMargins

Protected setHistogramMargins(): void

Returns

void

Inherited from

AbstractHistogram.setHistogramMargins

Defined in

src/histograms/AbstractHistogram.ts:96


setSelectedInterval

setSelectedInterval(selectedInputValues): void

Parameters

Name Type
selectedInputValues SelectedInputValues

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:173


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:563


setTooltipXposition

Protected Abstract setTooltipXposition(xPosition): number

Parameters

Name Type
xPosition number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:918


setTooltipYposition

Protected Abstract setTooltipYposition(yPosition): number

Parameters

Name Type
yPosition number

Returns

number

Defined in

src/histograms/charts/AbstractChart.ts:919


setVerticalTooltipsWidth

Protected setVerticalTooltipsWidth(): void

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:139


showTooltips

Protected showTooltips(data, chartIsToSides?): void

Parameters

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

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:539


updateSelectionStyle

Protected updateSelectionStyle(id): void

Parameters

Name Type
id string

Returns

void

Defined in

src/histograms/charts/AbstractChart.ts:288