Class: Axis
Hierarchy
Axis
↳
StepAxis
Properties
counterUnits
• Readonly
counterUnits: AxisUnits
Defined in
range
• Readonly
range: undefined
| { min
: number
; max
: number
}
Defined in
axisLength
• Readonly
axisLength: number
Defined in
gridOffset
• Private
Readonly
gridOffset: number
Defined in
units
• Readonly
units: AxisUnits
Defined in
Constructors
constructor
• new Axis(units
, chartRect
, ticks
)
Parameters
Name | Type |
---|---|
units | AxisUnits |
chartRect | ChartRect |
ticks | Label [] |
Defined in
Methods
projectValue
▸ Abstract
projectValue(value
, index?
, series?
): number
Parameters
Name | Type |
---|---|
value | undefined | string | number | Date | { x : number ; y : number } | { x : number } | { y : number } |
index? | number |
series? | NormalizedSeries |
Returns
number
Defined in
createGridAndLabels
▸ createGridAndLabels(gridGroup
, labelGroup
, chartOptions
, eventEmitter
): void
Parameters
Name | Type |
---|---|
gridGroup | Svg |
labelGroup | Svg |
chartOptions | OptionsWithDefaults |
eventEmitter | EventEmitter |
Returns
void