Search…
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:
Name
Type
value
number
index
number

DataChangeEvent

Ƭ DataChangeEvent: DataContainerEventDATA_CHANGE

DataContainerEventListener

Ƭ DataContainerEventListener: function

Type declaration:

▸ (action: DataContainerEvent‹T, P›): P
Parameters:
Name
Type
action
DataContainerEvent‹T, P›

DataContainerEvents

Ƭ DataContainerEvents: DataChangeEvent | GetScalesEvent | AreaSelectEvent

DataNormalizer

Ƭ DataNormalizer: function

Type declaration:

▸ (point: XYPoint): NormalizedXYPoint
Parameters:
Name
Type
point
XYPoint

DeepPartial

Ƭ DeepPartial: object

Type declaration:

GetScalesEvent

PointAccessor

Ƭ PointAccessor: function

Type declaration:

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

SimpleOnScaleListener

Ƭ SimpleOnScaleListener: function

Type declaration:

▸ (args: SimpleOnScaleListenerArgs): void
Parameters:
Name
Type

TooltipEventHandler

Ƭ TooltipEventHandler: function

Type declaration:

▸ (event: TooltipEvent): void
Parameters:
Name
Type
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:
Name
Type
start
number
end
number
scale
customMinLength?
Returns: number

Const defaultNormalizeData

defaultNormalizeData(__namedParameters: object): object | object
Parameters:
__namedParameters: object
Name
Type
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:
Name
Type
element
T
Returns: T | undefined

Const floorToNearest

floorToNearest(value: number, nearest: number): number
Parameters:
Name
Type
value
number
nearest
number
Returns: number

Const getContinuousNumericScale

getContinuousNumericScale(scaleType: DataScaleType): ScaleContinuousNumeric‹number, number›
Parameters:
Name
Type
scaleType
Returns: ScaleContinuousNumeric‹number, number›

Const getPaint

getPaintP›(paint: P, contrastPaint: P | undefined, backgroundIsBright: boolean): P
Type parameters:
P: Paint | undefined
Parameters:
Name
Type
paint
P
contrastPaint
P | undefined
backgroundIsBright
boolean
Returns: P

Const isTupleOfNumbers

isTupleOfNumbers(value: unknown): value is [number, number]
Parameters:
Name
Type
value
unknown
Returns: value is [number, number]

Const isXYArray

isXYArray(data: any): data is XYPoint‹any›[]
Parameters:
Name
Type
data
any
Returns: data is XYPoint‹any›[]

Const mergeXY

mergeXY(x: number[], y: number[]): XYPoint[]
Parameters:
Name
Type
x
number[]
y
number[]
Returns: XYPoint[]

Const performanceCounter

performanceCounter(name: string): end
Parameters:
Name
Type
name
string
Returns: end

Const precision

precision(a: number): number
Parameters:
Name
Type
a
number
Returns: number

Const prepareAxisPoints

prepareAxisPoints(axisValues: AxisPoint[], scale: ScaleFunction): AxisPoint[]
Parameters:
Name
Type
axisValues
scale
Returns: AxisPoint[]

Const prepareAxisValues

prepareAxisValues(scale: ScaleFunction, params: AxisParameters, seriesLength: number): AxisPoint[]
Parameters:
Name
Type
Default
scale
-
params
-
seriesLength
number
10
Returns: AxisPoint[]

Const roundToNearest

roundToNearest(value: number, nearest: number): number
Parameters:
Name
Type
value
number
nearest
number
Returns: number

Const segmentizePoints

segmentizePointsIn, Filter, Out›(data: XYPoint‹In›[], filterBy: Filter): XYPoint‹Out›[][]
Type parameters:
In
Filter
Out
Parameters:
Name
Type
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
Export as PDF
Copy link
On this page
Index
Enumerations
Classes
Interfaces
Type aliases
Variables
Functions
Object literals
Type aliases
AreaSelectEvent
AxisLabelAccessor
DataChangeEvent
DataContainerEventListener
DataContainerEvents
DataNormalizer
DeepPartial
GetScalesEvent
PointAccessor
SimpleOnScaleListener
TooltipEventHandler
Variables
Const TOOLTIP_EXTENSION
Const TRANSFORM_EXTENSION
Const VIEW_TAG
Const X_SCALE_BAR_OFFSET
Const performanceResults
Functions
Const calculateMinLineLength
Const defaultNormalizeData
Const findBestMatchInSortedArray
Const floorToNearest
Const getContinuousNumericScale
Const getPaint
Const isTupleOfNumbers
Const isXYArray
Const mergeXY
Const performanceCounter
Const precision
Const prepareAxisPoints
Const prepareAxisValues
Const roundToNearest
Const segmentizePoints
Object literals
Const DEFAULT_OPTIONS
▪ DEFAULT_OPTIONS: object
Const defaultStyle
▪ defaultStyle: object
alignment
backgroundPaint
barRadius
barWidth
borders
innerRadius
isBackgroundBright
labelPadding
labelPaint
padding
paint
paints
type
wrapLabelsOnEdge
Const labelPaintOverrides
▪ labelPaintOverrides: object
textAlign
textBaseline