Skip to main content

Class: Axis

Hierarchy

Properties

counterUnits

Readonly counterUnits: AxisUnits

Defined in

axes/Axis.ts:37


range

Readonly range: undefined | { min: number ; max: number }

Defined in

axes/Axis.ts:38


axisLength

Readonly axisLength: number

Defined in

axes/Axis.ts:44


gridOffset

Private Readonly gridOffset: number

Defined in

axes/Axis.ts:45


units

Readonly units: AxisUnits

Defined in

axes/Axis.ts:48

Constructors

constructor

new Axis(units, chartRect, ticks)

Parameters

NameType
unitsAxisUnits
chartRectChartRect
ticksLabel[]

Defined in

axes/Axis.ts:47

Methods

projectValue

Abstract projectValue(value, index?, series?): number

Parameters

NameType
valueundefined | string | number | Date | { x: number ; y: number } | { x: number } | { y: number }
index?number
series?NormalizedSeries

Returns

number

Defined in

axes/Axis.ts:58


createGridAndLabels

createGridAndLabels(gridGroup, labelGroup, chartOptions, eventEmitter): void

Parameters

NameType
gridGroupSvg
labelGroupSvg
chartOptionsOptionsWithDefaults
eventEmitterEventEmitter

Returns

void

Defined in

axes/Axis.ts:64