Type class
Creates a label on the chart which can be placed anywhere, multiple can be assigned.
Example
var chart = AmCharts.makeChart("chartdiv",{
...
"allLabels": [
{
"text": "Free label",
"bold": true,
"x": 20,
"y": 20
}
]
});
Inheritance
Label does not extend any other symbol.
Label is not extended by any other symbol.
Properties
|
align # |
Type Default |
|---|---|
|
alpha # |
Type Default |
|
bold # |
Type Default Specifies if label is bold or not. |
|
color # |
Type Color of a label. |
|
id # |
Type Unique id of a Label. You don't need to set it, unless you want to. |
|
rotation # |
Type Default Rotation angle. |
|
size # |
Type Text size. |
|
tabIndex # |
Type In 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. |
|
text # |
Type Text of a label. |
|
url # |
Type URL which will be access if user clicks on a label. |
|
x # |
Type X position of a label. |
|
y # |
Type y position of a label. |
Methods
Label does not have any methods.
Events
Label does not have any events.
Adapters
Label does not have any adapters.