Skip to content

Function: d3pScaleProjectFrom() ​

ts
function d3pScaleProjectFrom(scale, pixel): D3PDomainValue | undefined;

Defined in: core/util.ts:167

Range position -> domain value. Continuous scales use invert; band/point scales return the category whose band contains the pixel (point: the nearest category).

Parameters ​

scale ​

D3PScale

pixel ​

number

Returns ​

D3PDomainValue | undefined