Skip to content

Documentation / @ripl/charts / resolveDataLabelLayout

Function: resolveDataLabelLayout() ​

resolveDataLabelLayout(spec): DataLabelLayout

Defined in: charts/src/core/labels.ts:108

Resolves the anchored position and text alignment for a data label.

Parameters ​

ParameterType
specPick<DataLabelSpec, "x" | "y" | "anchor" | "offset">

Returns ​

DataLabelLayout