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

class anychart.ui.Label Improve this Doc

Methods Overview

Size and Position
parentBounds()Parent bounds settings.
Miscellaneous
container()Getter for the label current container.
draw()Draws label.

Methods Description

container

Getter for the label current container.

Returns:

string Element - The current container.

Try it:

Setter for the label container.

Params:

Name Type Description
value string | Element The value to set.

Returns:

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

Try it:

draw

Draws label.

Returns:

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

Try it:

parentBounds

Getter for bounds. As a getter falls back to stage bounds.

Returns:

anychart.math.Rect - Current bounds.

Try it:

Setter for bounds using single value.

Params:

Name Type Description
value anychart.math.Rect | Object | null Value to set

Returns:

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

Try it:

Setter for bounds using several value.

Params:

Name Type Description
left number Left space.
top number Top space.
width number A width for a legend.
height number A height for a legend.

Returns:

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

Try it: