Skip to content

Documentation / @ripl/charts / RadialLabelInput

Interface: RadialLabelInput

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

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

Properties

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