Skip to content

Function: domainRect() ​

ts
function domainRect(area, x, y): ViewportRect;

Experimental

A domain trace's rect (plan E4.5): domain.x / domain.y fractions (y from the bottom) of the plot area, in container px. Unlike axis spans this is not rounded: circular traces center on it exactly. Reversed or out-of-range fractions are sorted and clamped to [0, 1].

Parameters ​

ParameterType
areaReadonly<ViewportRect>
xreadonly [number, number]
yreadonly [number, number]

Returns ​

ViewportRect

Released under the MIT License.