Skip to content

Documentation / @ripl/charts / resolveRadialLabel

Function: resolveRadialLabel() ​

resolveRadialLabel(input): RadialLabelPlacement

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

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 behavior and the elbow leader line, stay identical. The outside textAlign flips by hemisphere so text reads away from the center.

Parameters ​

ParameterType
inputRadialLabelInput

Returns ​

RadialLabelPlacement