Documentation / @ripl/charts / DataLabelSpec
Interface: DataLabelSpec
Defined in: charts/src/core/labels.ts:29
Describes a single data label to render.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
anchor | LabelAnchor | Which side of the anchor point the label sits on. | charts/src/core/labels.ts:37 |
content | string | The label text. | charts/src/core/labels.ts:39 |
fill | string | Colour of the label text. | charts/src/core/labels.ts:43 |
font | string | CSS font shorthand for the label text. | charts/src/core/labels.ts:41 |
id | string | Unique element id for the label. | charts/src/core/labels.ts:31 |
offset? | number | Distance in pixels between the anchor point and the label. | charts/src/core/labels.ts:45 |
x | number | Anchor x coordinate, in chart pixels. | charts/src/core/labels.ts:33 |
y | number | Anchor y coordinate, in chart pixels. | charts/src/core/labels.ts:35 |