Skip to content

Interface: D3PAxisProjector ​

Defined in: core/axis.ts:97

Projections of an axis, live (D3PAxis) or frozen (D3PAxisSnapshot).

Methods ​

projectFrom() ​

ts
projectFrom(
   point, 
   options?, 
   cache?
): D3PDomainValue | undefined;

Defined in: core/axis.ts:104

Viewport point to the domain value under it, through the system of the axis. undefined outside of the system (unless strict is false) or between the bands of a band scale.

Parameters ​

point ​

D3PViewportPoint

options? ​
strict? ​

boolean

cache? ​

D3PProjectionCache

Returns ​

D3PDomainValue | undefined


projectTo() ​

ts
projectTo(
   chart, 
   value, 
   cache?
): number | undefined;

Defined in: core/axis.ts:99

Domain value to its position in range units (centered in the band of a band scale).

Parameters ​

chart ​

D3PChart

value ​

D3PDomainValue

cache? ​

D3PProjectionCache

Returns ​

number | undefined