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