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

class anychart.ui.LabelsFactory.Label Improve this Doc

Methods Overview

Specific settings
textFormatter()Text formatter.
Coloring
background()Background settings.
Interactivity
enabled()Element state (enabled or disabled).
Size and Position
anchor()Anchor settings.
height()Height settings.
offsetX()Offset by X.
offsetY()Offset by Y.
position()Position settings.
positionFormatter()Position formatter.
width()Width settings.

Methods Description

anchor

Getter for the current label anchor settings.

Returns:

anychart.enums.Anchor - The current label anchor settings.

Try it:

Setter for the label anchor settings.

Params:

Name Type Default Description
value anychart.enums.Anchor | string
'center'
Value to set.

Returns:

anychart.enums.Anchor - Self instance for method chaining.

Try it:

background

Getter for the current label background settings.

Returns:

anychart.core.ui.Background - The current background.

Try it:

Setter for the current label background settings.

Params:

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

Returns:

anychart.core.ui.LabelsFactory.Label - Self instance for method chaining.

enabled

Getter for the current element state.

Returns:

boolean - The current element state.

Try it:

Setter for the element enabled state.

Params:

Name Type Default Description
value null | boolean
false
Value to set.

Returns:

anychart.core.ui.LabelsFactory.Label - Self instance for method chaining.

Try it:

height

Getter for the current label height.

Returns:

number string null - The current label height.

Try it:

Setter for the label height.

Params:

Name Type Description
value number | string | null Height to set.

Returns:

anychart.core.ui.LabelsFactory.Label - Self instance for method chaining.

Try it:

offsetX

Getter for the current label offsetX settings.

Returns:

number string - The current label offsetX settings.

Try it:

Setter for the label offsetX settings.

Params:

Name Type Description
value number | string Value to set.

Returns:

anychart.core.ui.LabelsFactory.Label - Self instance for method chaining.

Try it:

offsetY

Getter for the current label offsetY settings.

Returns:

number string - The current label offsetY settings.

Try it:

Setter for the label offsetY settings.

Params:

Name Type Description
value number | string Value to set.

Returns:

anychart.core.ui.LabelsFactory.Label - Self instance for method chaining.

Try it:

position

Getter for the current label position settings.

Returns:

string - The current label position settings.

Try it:

Setter for the current label position settings.

Params:

Name Type Description
value string Value to set.

Returns:

anychart.core.ui.LabelsFactory.Label - Self instance for method chaining.

Try it:

positionFormatter

Gets the current position formatter.

Returns:

* - The current position formatter.
Sets the position formatter.

Params:

Name Type Description
value * Position formatter.

Returns:

* - Self instance for method chaining.

Try it:

textFormatter

Gets the current text formatter.

Returns:

* - The current text formatter.
Sets the text formatter.

Params:

Name Type Description
value * Text formatter.

Returns:

* - Self instance for method chaining.

Try it:

width

Getter for the current label width.

Returns:

number string null - The current label width.

Try it:

Setter for the label width.

Params:

Name Type Description
value number | string | null Width to set.

Returns:

anychart.core.ui.LabelsFactory.Label - Self instance for method chaining.

Try it: