Skip to content

Documentation / @ripl/charts / DataLabelSpec

Interface: DataLabelSpec ​

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

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:39
contentstringThe label text.charts/src/core/labels.ts:41
fillstringColor of the label text.charts/src/core/labels.ts:45
fontstringCSS font shorthand for the label text.charts/src/core/labels.ts:43
idstringUnique element id for the label.charts/src/core/labels.ts:33
offset?numberDistance in pixels between the anchor point and the label.charts/src/core/labels.ts:47
xnumberAnchor x coordinate, in chart pixels.charts/src/core/labels.ts:35
ynumberAnchor y coordinate, in chart pixels.charts/src/core/labels.ts:37