Skip to content

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 ​

PropertyTypeDescriptionDefined in
textAlignTextAlignmentHorizontal text alignment that keeps the label text anchored toward the mark.charts/src/core/labels.ts:57
textBaselineTextBaselineVertical text baseline that keeps the label text anchored toward the mark.charts/src/core/labels.ts:59
xnumberThe x coordinate of the label, offset from the mark along the anchor direction.charts/src/core/labels.ts:53
ynumberThe y coordinate of the label, offset from the mark along the anchor direction.charts/src/core/labels.ts:55