Documentation / @ripl/charts / SegmentLabelSpec
Interface: SegmentLabelSpec
Defined in: charts/src/core/labels.ts:111
Describes a single segment label to render.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
content | string | The label text. | charts/src/core/labels.ts:119 |
fill? | string | Defaults to the inside fill; pass the outside fill (or a custom colour) as needed. | charts/src/core/labels.ts:127 |
font? | string | Defaults to SEGMENT_LABEL_FONT. | charts/src/core/labels.ts:125 |
id? | string | Optional element id for the label. | charts/src/core/labels.ts:113 |
opacity? | number | Initial opacity (defaults to 0 so callers can fade the label in). | charts/src/core/labels.ts:129 |
textAlign? | TextAlignment | Defaults to the shared centered/middle alignment used for inside labels. | charts/src/core/labels.ts:121 |
textBaseline? | TextBaseline | Vertical text baseline; defaults to the shared middle alignment used for inside labels. | charts/src/core/labels.ts:123 |
x | number | Label x coordinate, in chart pixels. | charts/src/core/labels.ts:115 |
y | number | Label y coordinate, in chart pixels. | charts/src/core/labels.ts:117 |
zIndex? | number | Stacking order relative to sibling elements (defaults to 1). | charts/src/core/labels.ts:131 |