Skip to content

Documentation / @ripl/charts / RadialLabelInput

Interface: RadialLabelInput ​

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

Input geometry for placing a label around a radial (arc-based) segment.

Properties ​

PropertyTypeDescriptionDefined in
cxnumberCenter x of the radial layout, in chart pixels.charts/src/core/labels.ts:169
cynumberCenter y of the radial layout, in chart pixels.charts/src/core/labels.ts:171
endAnglenumberEnd angle of the segment, in radians.charts/src/core/labels.ts:175
horizontalLength?numberHorizontal run of the leader line before the label (outside labels). Defaults to 20.charts/src/core/labels.ts:185
innerRadius?numberInner radius of the segment (0 for a full pie slice).charts/src/core/labels.ts:179
insideRatio?numberFraction (0–1) between inner and outer radius for the inside anchor. Defaults to 0.5.charts/src/core/labels.ts:181
outerGap?numberRadial gap from the outer edge to the leader-line elbow (outside labels). Defaults to 12.charts/src/core/labels.ts:183
radiusnumberOuter radius of the segment.charts/src/core/labels.ts:177
startAnglenumberStart angle of the segment, in radians.charts/src/core/labels.ts:173
textGap?numberGap between the leader line and the label text (outside labels). Defaults to 4.charts/src/core/labels.ts:187