Documentation / @ripl/charts / resolveDataLabelLayout
Function: resolveDataLabelLayout()
resolveDataLabelLayout(
spec):object
Defined in: charts/src/core/labels.ts:82
Resolves the anchored position and text alignment for a data label.
Parameters
| Parameter | Type |
|---|---|
spec | Pick<DataLabelSpec, "x" | "y" | "anchor" | "offset"> |
Returns
object
textAlign
textAlign:
TextAlignment|undefined
textBaseline
textBaseline:
TextBaseline|undefined
x
x:
number
y
y:
number