API
Index
Enumerations
Classes
Interfaces
Type aliases
Variables
Functions
Object literals
Type aliases
AreaSelectEvent
Ƭ AreaSelectEvent: DataContainerEvent‹AREA_SELECT, Rect | undefined›
AxisLabelAccessor
Ƭ AxisLabelAccessor: function
Type declaration:
▸ (value
: number, index
: number): string
Parameters:
Name | Type |
---|---|
| number |
| number |
DataChangeEvent
Ƭ DataChangeEvent: DataContainerEvent‹DATA_CHANGE›
DataContainerEventListener
Ƭ DataContainerEventListener: function
Type declaration:
▸ (action
: DataContainerEvent‹T, P›): P
Parameters:
Name | Type |
---|---|
| DataContainerEvent‹T, P› |
DataContainerEvents
Ƭ DataContainerEvents: DataChangeEvent | GetScalesEvent | AreaSelectEvent
DataNormalizer
Ƭ DataNormalizer: function
Type declaration:
▸ (point
: XYPoint): NormalizedXYPoint
Parameters:
Name | Type |
---|---|
|
DeepPartial
Ƭ DeepPartial: object
Type declaration:
GetScalesEvent
Ƭ GetScalesEvent: DataContainerEvent‹GET_SCALES, ScaleFunctions›
PointAccessor
Ƭ PointAccessor: function
Type declaration:
▸ (point
: DataPoint, index
: number, series
: DataPoint[]): XYPoint
Parameters:
Name | Type |
---|---|
| DataPoint |
| number |
| DataPoint[] |
SimpleOnScaleListener
Ƭ SimpleOnScaleListener: function
Type declaration:
▸ (args
: SimpleOnScaleListenerArgs): void
Parameters:
Name | Type |
---|---|
|
TooltipEventHandler
Ƭ TooltipEventHandler: function
Type declaration:
▸ (event
: TooltipEvent): void
Parameters:
Name | Type |
---|---|
|
Variables
Const
TOOLTIP_EXTENSION
Const
TOOLTIP_EXTENSION• TOOLTIP_EXTENSION: "DataContainerTooltipExtension" = "DataContainerTooltipExtension"
Const
TRANSFORM_EXTENSION
Const
TRANSFORM_EXTENSION• TRANSFORM_EXTENSION: "DataContainerTransformExtension" = "DataContainerTransformExtension"
Const
VIEW_TAG
Const
VIEW_TAG• VIEW_TAG: "LineChartView" = "LineChartView"
Const
X_SCALE_BAR_OFFSET
Const
X_SCALE_BAR_OFFSET• X_SCALE_BAR_OFFSET: 0.5 = 0.5
Const
performanceResults
Const
performanceResults• performanceResults: Record‹string, PerformanceResults›
Functions
Const
calculateMinLineLength
Const
calculateMinLineLength▸ calculateMinLineLength(start
: number, end
: number, scale
: ScaleFunction, customMinLength?
: MinLineChartChunkLength): number
Parameters:
Name | Type |
---|---|
| number |
| number |
| |
|
Returns: number
Const
defaultNormalizeData
Const
defaultNormalizeData▸ defaultNormalizeData(__namedParameters
: object): object | object
Parameters:
▪ __namedParameters: object
Name | Type |
---|---|
| number |
| number |
Returns: object | object
Const
findBestMatchInSortedArray
Const
findBestMatchInSortedArray▸ findBestMatchInSortedArray‹T›(array
: T[], matcher
: function): T | undefined
Type parameters:
▪ T
Parameters:
▪ array: T[]
▪ matcher: function
▸ (element
: T): number
Parameters:
Name | Type |
---|---|
| T |
Returns: T | undefined
Const
floorToNearest
Const
floorToNearest▸ floorToNearest(value
: number, nearest
: number): number
Parameters:
Name | Type |
---|---|
| number |
| number |
Returns: number
Const
getContinuousNumericScale
Const
getContinuousNumericScale▸ getContinuousNumericScale(scaleType
: DataScaleType): ScaleContinuousNumeric‹number, number›
Parameters:
Name | Type |
---|---|
|
Returns: ScaleContinuousNumeric‹number, number›
Const
getPaint
Const
getPaint▸ getPaint‹P›(paint
: P, contrastPaint
: P | undefined, backgroundIsBright
: boolean): P
Type parameters:
▪ P: Paint | undefined
Parameters:
Name | Type |
---|---|
| P |
| P | undefined |
| boolean |
Returns: P
Const
isTupleOfNumbers
Const
isTupleOfNumbers▸ isTupleOfNumbers(value
: unknown): value is [number, number]
Parameters:
Name | Type |
---|---|
| unknown |
Returns: value is [number, number]
Const
isXYArray
Const
isXYArray▸ isXYArray(data
: any): data is XYPoint‹any›[]
Parameters:
Name | Type |
---|---|
| any |
Returns: data is XYPoint‹any›[]
Const
mergeXY
Const
mergeXY▸ mergeXY(x
: number[], y
: number[]): XYPoint[]
Parameters:
Name | Type |
---|---|
| number[] |
| number[] |
Returns: XYPoint[]
Const
performanceCounter
Const
performanceCounter▸ performanceCounter(name
: string): end
Parameters:
Name | Type |
---|---|
| string |
Returns: end
Const
precision
Const
precision▸ precision(a
: number): number
Parameters:
Name | Type |
---|---|
| number |
Returns: number
Const
prepareAxisPoints
Const
prepareAxisPoints▸ prepareAxisPoints(axisValues
: AxisPoint[], scale
: ScaleFunction): AxisPoint[]
Parameters:
Name | Type |
---|---|
| |
|
Returns: AxisPoint[]
Const
prepareAxisValues
Const
prepareAxisValues▸ prepareAxisValues(scale
: ScaleFunction, params
: AxisParameters, seriesLength
: number): AxisPoint[]
Parameters:
Name | Type | Default |
---|---|---|
| - | |
| - | |
| number | 10 |
Returns: AxisPoint[]
Const
roundToNearest
Const
roundToNearest▸ roundToNearest(value
: number, nearest
: number): number
Parameters:
Name | Type |
---|---|
| number |
| number |
Returns: number
Const
segmentizePoints
Const
segmentizePoints▸ segmentizePoints‹In, Filter, Out›(data
: XYPoint‹In›[], filterBy
: Filter): XYPoint‹Out›[][]
Type parameters:
▪ In
▪ Filter
▪ Out
Parameters:
Name | Type |
---|---|
| XYPoint‹In›[] |
| Filter |
Returns: XYPoint‹Out›[][]
Object literals
Const
DEFAULT_OPTIONS
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
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
Const
labelPaintOverrides▪ labelPaintOverrides: object
textAlign
• textAlign: CENTER = TextAlign.CENTER
textBaseline
• textBaseline: BOTTOM = TextBaseline.BOTTOM
Last updated