Class AxisBase<DataType, AxisOptionsType>Abstract

Implementation of RenderableItem class drawn on chart.

Type Parameters

  • DataType extends Object

  • AxisOptionsType extends AxisOptions

Hierarchy

Constructors

Properties

_chart?: Chart<any, string | number | Date, undefined>
_size: Size
borderShape: Shape<ShapeConfig>
dataTransformation: DataTransformation
id: number
initialHeight: undefined | number
initialWidth: undefined | number
konvaDrawables: Shape<ShapeConfig>[]
layerId: string
location: NumericPoint
majorTicks: Tick<DataType>[]
majorTicksGenerator: MajorTicksGenerator<DataType>
majorTicksLabelsSizes?: Size[]
majorTicksScreenCoords: number[]
minorTicks?: Tick<DataType>[]
minorTicksGenerator?: MinorTicksGenerator<DataType>
minorTicksScreenCoords: number[]
options: AxisOptionsType
orientation: AxisOrientation
range: Range<DataType>
textMeasureUtils: TextMeasureUtils = TextMeasureUtils.Instance
ticksShape: Shape<ShapeConfig>
generateMajorTicksMaxAttempts: 12 = 12
textVerticalOffsetMultiplier: number = 0.0

Vertical multiplier, which must be used for defining an offset for fillText canvas method. Each text must be shifted by this constant in top direction (Y axis).

Accessors

Methods

  • Updates axis state.

    Parameters

    • location: NumericPoint

      axis location on chart.

    • range: Range<DataType>

      axis data range.

    • Optional width: number

      axis width. May be undefined (for vertical axis only)

    • Optional height: number

      axis height. May be undefined (for horizontal axis only)

    Returns void

Generated using TypeDoc