Skip to content

Documentation / @ripl/charts / DataLabelSpec

Interface: DataLabelSpec

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

Describes a single data label to render.

Properties

PropertyTypeDescriptionDefined in
anchorLabelAnchorWhich side of the anchor point the label sits on.charts/src/core/labels.ts:37
contentstringThe label text.charts/src/core/labels.ts:39
fillstringColour of the label text.charts/src/core/labels.ts:43
fontstringCSS font shorthand for the label text.charts/src/core/labels.ts:41
idstringUnique element id for the label.charts/src/core/labels.ts:31
offset?numberDistance in pixels between the anchor point and the label.charts/src/core/labels.ts:45
xnumberAnchor x coordinate, in chart pixels.charts/src/core/labels.ts:33
ynumberAnchor y coordinate, in chart pixels.charts/src/core/labels.ts:35