Label
Type class
Creates a label on the chart which can be placed anywhere, multiple can be assigned.
Example
```js var chart = AmCharts.makeChart("chartdiv",{ ... "allLabels": [ { "text": "Free label", "bold": true, "x": 20, "y": 20 } ] });```Sources
This information about Label is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
Label does not extend any other symbol.
Label is not extended by any other symbol.
Properties
alignType
stringDefaultleftalphaType
numberDefault1boldType
booleanDefaultfalseSpecifies if label is bold or not.
colorType
colorColor of a label.
idType
stringUnique id of a Label. You don't need to set it, unless you want to.
rotationType
numberDefault0Rotation angle.
sizeType
numberText size.
tabIndexType
numberIn case you set it to some number, the chart will set focus on the label when user clicks tab key. When a focus is set, screen readers like NVDA Screen reader will read the title. Note, not all browsers and readers support this.
textType
stringText of a label.
urlType
stringURL which will be access if user clicks on a label.
xType
number/stringX position of a label.
yType
number/stringy position of a label.
Methods
Label does not have any methods.
Events
Label does not have any events.