class Geometry · Computations

DeclutterBoxesAlongAxisOptions

Options for Declutter.boxesAlongAxis.

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?: "start" | "end" | "middle"

Where each box stays when zooming (the point that moves with the data): "start" its smaller coordinate along the axis (left for "x", top for "y"), "middle" (default) its center, "end" its larger coordinate. E.g. "start" for labels written to the right of their data point.

paddingoptional

padding?: number | Real

The smallest gap between two shown boxes along the axis (default 0), in screen units.