Documentation / @ripl/charts / DataLabelLayout
Interface: DataLabelLayout ​
Defined in: charts/src/core/labels.ts:51
Resolved placement for a data label: the offset position and the text alignment that anchors it.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
textAlign | TextAlignment | Horizontal text alignment that keeps the label text anchored toward the mark. | charts/src/core/labels.ts:57 |
textBaseline | TextBaseline | Vertical text baseline that keeps the label text anchored toward the mark. | charts/src/core/labels.ts:59 |
x | number | The x coordinate of the label, offset from the mark along the anchor direction. | charts/src/core/labels.ts:53 |
y | number | The y coordinate of the label, offset from the mark along the anchor direction. | charts/src/core/labels.ts:55 |