API

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

AreaSelectEvent

Ƭ AreaSelectEvent: DataContainerEventAREA_SELECT, Rect | undefined›


AxisLabelAccessor

Ƭ AxisLabelAccessor: function

Type declaration:

▸ (value: number, index: number): string

Parameters:

NameType

value

number

index

number


DataChangeEvent

Ƭ DataChangeEvent: DataContainerEventDATA_CHANGE


DataContainerEventListener

Ƭ DataContainerEventListener: function

Type declaration:

▸ (action: DataContainerEvent‹T, P›): P

Parameters:

NameType

action


DataContainerEvents

Ƭ DataContainerEvents: DataChangeEvent | GetScalesEvent | AreaSelectEvent


DataNormalizer

Ƭ DataNormalizer: function

Type declaration:

▸ (point: XYPoint): NormalizedXYPoint

Parameters:

NameType

point


DeepPartial

Ƭ DeepPartial: object

Type declaration:


GetScalesEvent

Ƭ GetScalesEvent: DataContainerEventGET_SCALES, ScaleFunctions


PointAccessor

Ƭ PointAccessor: function

Type declaration:

▸ (point: DataPoint, index: number, series: DataPoint[]): XYPoint

Parameters:

NameType

point

DataPoint

index

number

series

DataPoint[]


SimpleOnScaleListener

Ƭ SimpleOnScaleListener: function

Type declaration:

▸ (args: SimpleOnScaleListenerArgs): void

Parameters:


TooltipEventHandler

Ƭ TooltipEventHandler: function

Type declaration:

▸ (event: TooltipEvent): void

Parameters:

NameType

event

Variables

Const TOOLTIP_EXTENSION

TOOLTIP_EXTENSION: "DataContainerTooltipExtension" = "DataContainerTooltipExtension"


Const TRANSFORM_EXTENSION

TRANSFORM_EXTENSION: "DataContainerTransformExtension" = "DataContainerTransformExtension"


Const VIEW_TAG

VIEW_TAG: "LineChartView" = "LineChartView"


Const X_SCALE_BAR_OFFSET

X_SCALE_BAR_OFFSET: 0.5 = 0.5


Const performanceResults

performanceResults: Record‹string, PerformanceResults

Functions

Const calculateMinLineLength

calculateMinLineLength(start: number, end: number, scale: ScaleFunction, customMinLength?: MinLineChartChunkLength): number

Parameters:

NameType

start

number

end

number

scale

customMinLength?

Returns: number


Const defaultNormalizeData

defaultNormalizeData(__namedParameters: object): object | object

Parameters:

__namedParameters: object

NameType

x

number

y

number

Returns: object | object


Const findBestMatchInSortedArray

findBestMatchInSortedArrayT›(array: T[], matcher: function): T | undefined

Type parameters:

T

Parameters:

array: T[]

matcher: function

▸ (element: T): number

Parameters:

NameType

element

T

Returns: T | undefined


Const floorToNearest

floorToNearest(value: number, nearest: number): number

Parameters:

NameType

value

number

nearest

number

Returns: number


Const getContinuousNumericScale

getContinuousNumericScale(scaleType: DataScaleType): ScaleContinuousNumeric‹number, number›

Parameters:

NameType

scaleType

Returns: ScaleContinuousNumeric‹number, number›


Const getPaint

getPaintP›(paint: P, contrastPaint: P | undefined, backgroundIsBright: boolean): P

Type parameters:

P: Paint | undefined

Parameters:

NameType

paint

P

contrastPaint

P | undefined

backgroundIsBright

boolean

Returns: P


Const isTupleOfNumbers

isTupleOfNumbers(value: unknown): value is [number, number]

Parameters:

NameType

value

unknown

Returns: value is [number, number]


Const isXYArray

isXYArray(data: any): data is XYPoint‹any›[]

Parameters:

NameType

data

any

Returns: data is XYPoint‹any›[]


Const mergeXY

mergeXY(x: number[], y: number[]): XYPoint[]

Parameters:

NameType

x

number[]

y

number[]

Returns: XYPoint[]


Const performanceCounter

performanceCounter(name: string): end

Parameters:

NameType

name

string

Returns: end


Const precision

precision(a: number): number

Parameters:

NameType

a

number

Returns: number


Const prepareAxisPoints

prepareAxisPoints(axisValues: AxisPoint[], scale: ScaleFunction): AxisPoint[]

Parameters:

NameType

axisValues

scale

Returns: AxisPoint[]


Const prepareAxisValues

prepareAxisValues(scale: ScaleFunction, params: AxisParameters, seriesLength: number): AxisPoint[]

Parameters:

NameTypeDefault

scale

-

params

-

seriesLength

number

10

Returns: AxisPoint[]


Const roundToNearest

roundToNearest(value: number, nearest: number): number

Parameters:

NameType

value

number

nearest

number

Returns: number


Const segmentizePoints

segmentizePointsIn, Filter, Out›(data: XYPoint‹In›[], filterBy: Filter): XYPoint‹Out›[][]

Type parameters:

In

Filter

Out

Parameters:

NameType

data

XYPoint‹In›[]

filterBy

Filter

Returns: XYPoint‹Out›[][]

Object literals

Const DEFAULT_OPTIONS

DEFAULT_OPTIONS: object

pan: object

  • pointers: number = 1

scale: object

  • drag: true = true

  • listenerThreshold: number = 1

  • multitouch: true = true

  • scroll: true = true

  • selectArea: false = false

  • limit: object

    • x: [number, number] = [1, 1]

    • y: [number, number] = [1, 1]

  • minSelectedAreaThreshold: object

    • x: number = 50

    • y: number = 0


Const defaultStyle

defaultStyle: object

alignment

alignment: LegendAlignment = LegendAlignment.ROW

backgroundPaint

backgroundPaint: Paint‹› = new Paint() .setLineWidth(1.5)

barRadius

barRadius: number = 0

barWidth

barWidth: number = 0.5

borders

borders: Rect‹› = new Rect({left: 1, right: 1, top: 1, bottom: 1 })

innerRadius

innerRadius: number = 0

isBackgroundBright

isBackgroundBright: boolean = true

labelPadding

labelPadding: number = 4

labelPaint

labelPaint: Paint‹› = new Paint()

padding

padding: number = 0

paint

paint: Paint‹› = new Paint().setFillStyle(rgba('#FFF', 0.5)).setStrokeStyle('#FFF')

paints

paints: object

Type declaration:

type

type: DataDisplayType = DataDisplayType.LINE

wrapLabelsOnEdge

wrapLabelsOnEdge: boolean = true

background: object

  • paint: Paint‹› = new Paint() .setFillStyle(rgba('#FFF', .1))

  • radius: number = 0

  • width: number = 8

foreground: object

  • paint: Paint‹› = new Paint() .setFillStyle(rgba('#FFF', .5))

  • radius: number = 0

  • width: number = 8

minChunkLength: object

  • domain: number = 0


Const labelPaintOverrides

labelPaintOverrides: object

textAlign

textAlign: CENTER = TextAlign.CENTER

textBaseline

textBaseline: BOTTOM = TextBaseline.BOTTOM

Last updated