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

class anychart.ui.LabelsFactory.Label Improve this Doc

Methods Overview

Miscellaneous
anchor()Getter for label anchor settings.
background()Gets or sets the Label background settings.
draw()Label drawing.
enabled()Getter for the current element state (enabled or disabled).
height()Getter for label height.
offsetX()Getter for current label offsetX settings.
offsetY()Getter for current label offsetY settings.
position()Getter for current label position settings.
positionFormatter()Gets/Sets position formatter.
textFormatter()Gets/Sets text formatter.
width()Getter for label width.

Methods Description

anchor

Getter for label anchor settings.

Params:

Name Type Description
value anychart.enums.Anchor | string .

background

Gets or sets the Label background settings.

Params:

Name Type Description
value string | Object | null | boolean Background object to set.

Returns:

anychart.core.ui.LabelsFactory.Label anychart.core.ui.Background - Returns background or itself for chaining.

draw

Label drawing.

Returns:

anychart.core.ui.LabelsFactory.Label - Returns self for chaining.

enabled

Getter for the current element state (enabled or disabled).

Returns:

boolean - The current element state.
Setter for the element enabled state.

Params:

Name Type Description
value boolean Value to set.

Returns:

anychart.core.VisualBase - Self instance for method chaining.
Example
if (!element.enabled())
   element.enabled(true);

Try it:

height

Getter for label height.

Params:

Name Type Description
value number | string | null .

Returns:

anychart.core.ui.LabelsFactory.Label number string null - .

offsetX

Getter for current label offsetX settings.

Params:

Name Type Description
value number | string .

Returns:

number string anychart.core.ui.LabelsFactory.Label - .

offsetY

Getter for current label offsetY settings.

Params:

Name Type Description
value number | string .

Returns:

number string anychart.core.ui.LabelsFactory.Label - .

position

Getter for current label position settings.

Params:

Name Type Description
value string .

positionFormatter

Gets/Sets position formatter.

Params:

Name Type Description
value * Position formatter.

Returns:

* - Position formatter or self for chaining.

textFormatter

Gets/Sets text formatter.

Params:

Name Type Description
value * Text formatter.

Returns:

* - Text formatter or itself for chaining.

width

Getter for label width.

Params:

Name Type Description
value number | string | null .

Returns:

anychart.core.ui.LabelsFactory.Label number string null - .