API / Series/Line / LineSeriesDataLabels
Defined in: src/core/types/chart/line.ts:77
Extends
Properties
| Property | Type | Description |
|---|---|---|
allowOverlap? |
boolean |
Default false |
enabled? |
boolean |
Enable or disable the data labels Default true |
format? |
ValueFormat |
Formatting settings for labels. |
html? |
boolean |
Allows to use any html-tags to display the content. The element will be displayed outside the box of the SVG element. Default false |
padding? |
number |
Default 5 |
placement? |
"auto" | LineSeriesDataLabelPlacementPosition[] |
Candidate positions relative to the point, tried in order: auto tries the built-in order (top, bottom, left, right), an array sets the exact order to try. The label box of every candidate is shifted into the plot area first; a position fits when the shifted box does not cross a visible line of any line series and does not overlap already placed labels (unless allowOverlap is set). Default ['top'] |
placementFallback? |
LineSeriesDataLabelPlacementFallback |
What to do when none of the placement positions fits: show draws the label at the first position anyway (crossing lines and labels is allowed then), hide hides the label. Default 'show' |
style? |
Partial<BaseTextStyle> |
- |