class Geometry · Computations
DeclutterBoxesOptions
Options for Declutter.boxes.
All fields are optional. Numbers can be given as plain numbers or as reactive values; the value they hold when the function runs is used.
Properties
anchoroptional
anchor?: number[]Where each box stays when zooming (the point that moves with the data), as [rx, ry] ratios
of the box: [0, 0] its top left corner, [0.5, 0.5] (default) its center, [0, 0.5] the
middle of its left side, e.g. for labels written to the right of their data point. Values
outside 0 … 1 are clamped.
paddingoptional
padding?: number | RealThe smallest gap between two shown boxes (default 0), in screen units.
zoomoptional
zoom?: "x" | "y" | "both"The direction the zoom stretches: "both" (default, the positions scale along x and y),
"x" (only x scales, e.g. a timeline or a scatter zoomed along x) or "y". With "x", two
boxes apart along y never hide each other, however much the zoom moves them together along x.
