Skip to content

Documentation / @ripl/charts / resolveRadialLabel

Function: resolveRadialLabel()

resolveRadialLabel(input): RadialLabelPlacement

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

Computes both the inside (centroid) and outside (leader-line) label placements for a radial segment. Shared by the pie and polar-area charts so their inside/outside label behaviour — and the elbow leader line — stay identical. The outside textAlign flips by hemisphere so text reads away from the centre.

Parameters

ParameterType
inputRadialLabelInput

Returns

RadialLabelPlacement