Documentation / @ripl/charts / DataLabelSpec
Interface: DataLabelSpec ​
Defined in: charts/src/core/labels.ts:31
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:39 |
content | string | The label text. | charts/src/core/labels.ts:41 |
fill | string | Color of the label text. | charts/src/core/labels.ts:45 |
font | string | CSS font shorthand for the label text. | charts/src/core/labels.ts:43 |
id | string | Unique element id for the label. | charts/src/core/labels.ts:33 |
offset? | number | Distance in pixels between the anchor point and the label. | charts/src/core/labels.ts:47 |
x | number | Anchor x coordinate, in chart pixels. | charts/src/core/labels.ts:35 |
y | number | Anchor y coordinate, in chart pixels. | charts/src/core/labels.ts:37 |