Class: Axis
Defined in: axes/axis.ts:11
Owns the tick configuration for one axis and resolves the final tick list against a scale. Modes: auto (delegates to the scale), custom (array), or generator (function of the range) — plus major/minor, per-tick labels, and addTicks layering.
Constructors
Constructor
ts
new Axis(config?): Axis;Defined in: axes/axis.ts:23
Parameters
| Parameter | Type |
|---|---|
config | AxisConfig |
Returns
Axis
Properties
config
ts
config: AxisConfig;Defined in: axes/axis.ts:12
Methods
resolve()
ts
resolve(scale): Tick[];Defined in: axes/axis.ts:33
Resolve the concrete tick list (labels filled) for the scale's domain.
Parameters
| Parameter | Type |
|---|---|
scale | Scale |
Returns
Tick[]
update()
ts
update(patch): void;Defined in: axes/axis.ts:27
Parameters
| Parameter | Type |
|---|---|
patch | Partial<AxisConfig> |
Returns
void