Top
You are looking at an outdated 7.4.0 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.core.ui.LabelsFactory.Label Improve this Doc

Extends: anychart.core.Text

Class for creation of sets of similar labels and management of such sets. Any individual label can be changed after all labels are displayed.

Methods Overview

Miscellaneous
getIndex()Returns label index.
padding()Getter for current label padding.
rotation()Rotates a label around an anchor.

Methods Description

getIndex

Returns label index.

Returns:

number -

padding

Getter for current label padding.

Params:

Name Type Description
spaceOrTopOrTopAndBottom null | string | number | Array.<(number|string)> | Object Value to set.
rightOrRightAndLeft string | number Value to set.
bottom string | number Value to set.
left string | number Value to set.

rotation

Rotates a label around an anchor. (anychart.graphics.vector.Element). Method resets transformation and applies a new one.

Params:

Name Type Description
value number Rotation angle in degrees.

Returns:

number anychart.core.ui.LabelsFactory.Label - Rotation angle in degrees or self for chaining call.